TABLE OF CONTENTS
CsplineUtils/cevalCinte [ Functions ]
NAME
cevalCinte --- construct matrix of partial integrals of a B-spline basis
FUNCTION
This is needed to compute the cumulative baseline hazard. This function updates the input matrix cinte, so that cinte[i,j] contains the integral of the j-th B-spline basis function of order ord, defined on the given knots, from 0 to x[i]. It's just a wrapper for cevalCinte2 that evaluates the entire matrix.
SYNOPSIS
311 void cevalCinte(double *cinte, double *x, int *nx, double *knots, int *ord, int *K, double *binte)
INPUTS
cinte output matrix of dimension nx x nj x vector of observations at which to evaluate nx length of x knots vector of knot positions, length nj+ord ord order of the spline binte vector of integrals of each B-spline basis function, see cevalBinte
SOURCE
315 { 316 int nj = *K + *ord; 317 for(int i=0; i<*nx; i++) cevalCinte2(cinte, x, *nx, knots, nj, *ord, binte, i, 0, nj); 318 }