This type contains functionalities to perform various interpolation methods for two dimensional data. It summarizes functions contained within the interpolation module.
Constructor | Description |
|
|
Static member | Description |
Full Usage:
Interpolation.getFirstDerivative coef
Parameters:
InterpolationCoefficients
-
Interpolation coefficients
Returns: float -> float
Function that takes an x value and returns the corresponding slope.
|
Takes interpolation coefficients to create a function that calculates the slope of the interpolation function. X values that don't lie within the range of the input x values, may fail or are predicted using the nearest interpolation line!
Example
|
Full Usage:
Interpolation.getIntegralBetween (coef, x1, x2)
Parameters:
InterpolationCoefficients
-
Interpolation coefficients
x1 : float
-
interval start
x2 : float
-
interval end
Returns: float
area under the curve between x1 and x2
|
Takes interpolation coefficients and two x values to calculate the area under the curve within the region flanked by x1 and x2.
|
Full Usage:
Interpolation.getSecondDerivative coef
Parameters:
InterpolationCoefficients
-
Interpolation coefficients
Returns: float -> float
Function that takes an x value and returns the corresponding curvature.
|
Takes interpolation coefficients to create a function that calculates the curvature of the interpolation function. X values that don't lie within the range of the input x values, may fail or are predicted using the nearest interpolation line!
Example
|
Full Usage:
Interpolation.interpolate (xValues, yValues, method)
Parameters:
float array
-
Input x values. Must not contain duplicates.
yValues : float array
-
Input y values
method : InterpolationMethod
-
Interpolation Method
Returns: InterpolationCoefficients
Coefficients for interpolation function.
|
Determines interpolation coefficients for two dimensional data. CubicSpline, AkimaSpline and HermiteSpline use piecewise cubic splines.
Example
|
Full Usage:
Interpolation.predict coef
Parameters:
InterpolationCoefficients
-
Interpolation coefficients
Returns: float -> float
Function that takes an x value and returns the corresponding y value.
|
X values that don't lie within the range of the input x values, may fail or are predicted using the nearest interpolation line!
Example
|