TABLE OF CONTENTS


curveUpdate/updateparametric [ Functions ]

NAME

    updateparametric --- update parametric component parameters

FUNCTION

Update a curve to use a new set of parameters for the parametric component.

SYNOPSIS

2116 updateparametric <- function(curve, param.par)

INPUTS

    curve      an RCurve structure
    param.par  parameters for the parametric component

OUTPUTS

    curve      the input curve, re-evaluated at the new parameters

SOURCE

2119 {
2120     if(!curve$haspar) return(curve)
2121     # copy the new parameters into the curve and re-evaluate
2122     curve$param.par <- param.par
2123     curve <- evalparametric(curve)
2124     return(curve)
2125 }