ppmak2Deriv: ppmak2Deriv

Description Usage Arguments Value

View source: R/ppmak2Deriv.R

Description

Create the second derivative of the spline defined by given intervals and quadratic coefficients. This is an internal function that is called from the Schumaker function.

Usage

1
ppmak2Deriv(IntStarts, SpCoefs, Vectorised = TRUE)

Arguments

IntStarts

This is a vector with the start of each interval.

SpCoefs

This is a matrix with three columns. The first is the coefficient of the squared term followed by linear term coefficients and constants.

Vectorised

This is a boolean parameter. Set to TRUE if you want to be able to input vectors to the created spline. If you will only input single values set this to FALSE as it is a bit faster.

Value

A spline function for the given intervals and quadratic curves. Each function takes an x value (or vector if Vectorised = TRUE) and outputs the interpolated y value (or relevent derivative).


schumaker documentation built on Sept. 10, 2021, 1:06 a.m.