TABLE OF CONTENTS


CsplineUtils/cevalEinte [ Functions ]

NAME

    cevalEinte --- compute the N-th moment of the distance from 1 of a B-spline

FUNCTION

C implementation of evalEinte, see its description for details. The difference is that this function can compute general moments, not just the first moment. The second moment is needed for computing the frailty variance.

SYNOPSIS

71 void cevalEinte(double *einte, double *knots, int *ord, int *K, int *N)

INPUTS

    einte     vector of length K+ord to store the output
    knots     vector of knots, of length K+2*ord
    ord       order of the spline
    K         number of interior knots
    N         moment to compute

SOURCE

75 {
76     int j;
77     for(j=0; j < *K+*ord; j++)
78         einte[j]=1.0-cnBsmom(*N,*ord,j,knots,*ord);
79 }