TABLE OF CONTENTS
CcurveUpdate/EvalParametric [ Functions ]
NAME
EvalParametric --- evaluate the parametric component of a curve with new parameters
FUNCTION
Re-evaluate the parametric component of a curve if the parametric component parameters have changed.
SYNOPSIS
1423 void EvalParametric(curveP theCurve, int i)
INPUTS
theCurve CCurve structure i index of the observation that should be evaluated
OUTPUTS
theCurve CCurve, with Y and Ycum updated
SOURCE
1427 { 1428 if(!theCurve->hasPar) return; 1429 if(i<0){ 1430 // if all observations should be updated, updated them one by one 1431 for(int ind=0; ind<theCurve->nx; ind++) EvalParametric(theCurve, ind); 1432 }else{ 1433 theCurve->ParamY[i] = EvalParamAtOnePoint(theCurve, theCurve->X[i], 0); 1434 if(theCurve->isHazard) 1435 theCurve->ParamYcum[i] = EvalParamAtOnePoint(theCurve, theCurve->X[i], 1); 1436 } 1437 ReweightCurve(theCurve, i); 1438 }