@JsType(isNative=true) public class HermitePolynomialApproximation extends Object implements InterpolationAlgorithm
InterpolationAlgorithm
for performing Hermite interpolation.Constructor and Description |
---|
HermitePolynomialApproximation() |
Modifier and Type | Method and Description |
---|---|
static int |
getRequiredDataPoints(double degree)
Given the desired degree, returns the number of data points required for interpolation.
|
static int |
getRequiredDataPoints(double degree,
int inputOrder)
Given the desired degree, returns the number of data points required for interpolation.
|
static HermitePolynomialApproximation |
instance()
Get instance if algorithm.
|
static double[] |
interpolate(double x,
double[] xTable,
double[] yTable,
double yStride,
int inputOrder,
int outputOrder)
Interpolates values using Hermite Polynomial Approximation.
|
static double[] |
interpolate(double x,
double[] xTable,
double[] yTable,
double yStride,
int inputOrder,
int outputOrder,
double[] result)
Interpolates values using Hermite Polynomial Approximation.
|
static double[] |
interpolateOrderZero(double x,
double[] xTable,
double[] yTable,
double yStride)
Interpolates values using Lagrange Polynomial Approximation.
|
static double[] |
interpolateOrderZero(double x,
double[] xTable,
double[] yTable,
double yStride,
double[] result)
Interpolates values using Lagrange Polynomial Approximation.
|
@JsProperty(namespace="Cesium", name="HermitePolynomialApproximation") public static HermitePolynomialApproximation instance()
@JsMethod(namespace="Cesium.HermitePolynomialApproximation") public static int getRequiredDataPoints(double degree)
degree
- The desired degree of interpolation.@JsMethod(namespace="Cesium.HermitePolynomialApproximation") public static int getRequiredDataPoints(double degree, int inputOrder)
degree
- The desired degree of interpolation.inputOrder
- The order of the inputs (0 means just the data, 1 means the data and its derivative, etc).@JsMethod(namespace="Cesium.HermitePolynomialApproximation") public static double[] interpolate(double x, double[] xTable, double[] yTable, double yStride, int inputOrder, int outputOrder)
x
- The independent variable for which the dependent variables will be interpolated.xTable
- The array of independent variables to use to interpolate. The values in this array must be in
increasing order and the same value must not occur twice in the array.yTable
- The array of dependent variables to use to interpolate. For a set of three dependent values (p,q,w)
at time 1 and time 2 this should be as follows: {p1, q1, w1, p2, q2, w2}.yStride
- The number of dependent variable values in yTable corresponding to each independent variable value in xTable.inputOrder
- The number of derivatives supplied for input.outputOrder
- The number of derivatives desired for output.@JsMethod(namespace="Cesium.HermitePolynomialApproximation") public static double[] interpolate(double x, double[] xTable, double[] yTable, double yStride, int inputOrder, int outputOrder, double[] result)
x
- The independent variable for which the dependent variables will be interpolated.xTable
- The array of independent variables to use to interpolate. The values in this array must be in
increasing order and the same value must not occur twice in the array.yTable
- The array of dependent variables to use to interpolate. For a set of three dependent values (p,q,w)
at time 1 and time 2 this should be as follows: {p1, q1, w1, p2, q2, w2}.yStride
- The number of dependent variable values in yTable corresponding to each independent variable value in xTable.inputOrder
- The number of derivatives supplied for input.outputOrder
- The number of derivatives desired for output.result
- An existing array into which to store the result.@JsMethod(namespace="Cesium.HermitePolynomialApproximation") public static double[] interpolateOrderZero(double x, double[] xTable, double[] yTable, double yStride)
x
- The independent variable for which the dependent variables will be interpolated.xTable
- The array of independent variables to use to interpolate. The values in this array must be in
increasing order and the same value must not occur twice in the array.yTable
- The array of dependent variables to use to interpolate.
For a set of three dependent values (p,q,w) at time 1 and time 2 this should be as follows: {p1, q1, w1, p2, q2, w2}.yStride
- The number of dependent variable values in yTable corresponding to each independent variable value in xTable.@JsMethod(namespace="Cesium.HermitePolynomialApproximation") public static double[] interpolateOrderZero(double x, double[] xTable, double[] yTable, double yStride, double[] result)
x
- The independent variable for which the dependent variables will be interpolated.xTable
- The array of independent variables to use to interpolate. The values in this array must be in
increasing order and the same value must not occur twice in the array.yTable
- The array of dependent variables to use to interpolate.
For a set of three dependent values (p,q,w) at time 1 and time 2 this should be as follows: {p1, q1, w1, p2, q2, w2}.yStride
- The number of dependent variable values in yTable corresponding to each independent variable value in xTable.result
- An existing array into which to store the result.Copyright © 2019. All rights reserved.