Record type that contains the x-knots, intersects (C0) and slopes (C1) of each interval.
Equivalent to interval-wise simple linear regression between any neighbouring pair of data.
Record Field | Description |
Full Usage:
C0
Field type: float[]
|
|
Full Usage:
XValues
Field type: float[]
|
|
Instance member | Description |
Full Usage:
this.Differentiate
Returns: StepCoef
Coefficients of the fst derivative of the linear spline
|
|
Full Usage:
this.Predict
Returns: float -> float
Y value corresponding to the given x value.
|
X values that don't not lie within the range of the input x values, are predicted using the nearest interpolation line!
Example
|
Full Usage:
this.getDerivative x
Parameters:
'a
-
x value of which the corresponding y value slope should be predicted
Returns: float
predicted slope of given step function at X=x
|
|