Module to create piecewise cubic polynomials (cubic subsplines) from x,y coordinates. Akima subsplines are more flexible than standard cubic splines because the are NOT continuous in the function curvature, thereby diminishing oscillating behaviour.
Type | Description |
Function or value | Description |
Full Usage:
definiteIntegral integrateF xVal1 xVal2
Parameters:
float -> float
xVal1 : float
-
X value from where the integral should be calculated.
xVal2 : float
-
X value up to which the integral should be calculated.
Returns: float
Integral (area under the curve) from x=xVal1 to x=xVal2
|
|
Full Usage:
getFirstDerivative splineCoeffs xVal
Parameters:
SubSplineCoef
-
Interpolation functions coefficients.
xVal : float
-
X value of which the slope should be predicted.
Returns: float
Function that takes an x value and returns slope.
|
Second derivative (curvature) is NOT continuous at knots to allow higher flexibility to reduce oscillations! For reference see: http://www.dorn.org/uni/sls/kap06/f08_0204.htm.
Example
|
Full Usage:
getSecondDerivative splineCoeffs xVal
Parameters:
SubSplineCoef
-
Interpolation functions coefficients.
xVal : float
-
X value of which the curvature should be predicted.
Returns: float
Function that takes an x value and returns curvature.
|
Second derivative (curvature) is NOT continuous at knots to allow higher flexibility to reduce oscillations! For reference see: http://www.dorn.org/uni/sls/kap06/f08_0204.htm.
Example
|
Full Usage:
integrate splineCoeffs xVal
Parameters:
SubSplineCoef
-
Interpolation functions coefficients.
xVal : float
-
X value up to which the integral should be calculated.
Returns: float
Integral (area under the curve) from x=0 to x=xVal
|
|
Full Usage:
interpolate xValues yValues
Parameters:
float[]
-
Note: Must not contain duplicate x values (use Approximation.regularizeValues to preprocess data!)
yValues : float[]
-
function value at x values
Returns: SubSplineCoef
Coefficients that define the interpolating function.
|
Second derivative (curvature) is NOT continuous at knots to allow higher flexibility to reduce oscillations! For reference see: http://www.dorn.org/uni/sls/kap06/f08_0204.htm.
Example
|
Full Usage:
interpolateHermiteSorted xValues yValues firstDerivatives
Parameters:
float[]
-
x values that are sorted ascending. Note: Must not contain duplicate x values (use Approximation.regularizeValues to preprocess data!)
yValues : float[]
-
function value at x values
firstDerivatives : float[]
-
first derivatives at x values
Returns: SubSplineCoef
Coefficients that define the interpolating function.
|
Second derivative (curvature) is NOT continuous at knots to allow higher flexibility to reduce oscillations! For reference see: http://www.dorn.org/uni/sls/kap06/f08_0204.htm.
Example
|
Full Usage:
predict splineCoeffs xVal
Parameters:
SubSplineCoef
-
Interpolation functions coefficients.
xVal : float
-
X value of which the y value should be predicted.
Returns: float
Function that takes an x value and returns function value.
|
Second derivative (curvature) is NOT continuous at knots to allow higher flexibility to reduce oscillations! For reference see: http://www.dorn.org/uni/sls/kap06/f08_0204.htm.
Example
|