An
InterpolationAlgorithm
for performing Hermite interpolation.方法
Given the desired degree, returns the number of data points required for interpolation.
参数名称 | 类型 | 默认值 | 描述信息 |
---|---|---|---|
degree |
number | The desired degree of interpolation. | |
inputOrder |
number |
0
|
可选 The order of the inputs (0 means just the data, 1 means the data and its derivative, etc). |
返回值:
The number of required data points needed for the desired degree of interpolation.
Throws:
-
DeveloperError : degree must be 0 or greater.
-
DeveloperError : inputOrder must be 0 or greater.
static Cesium.HermitePolynomialApproximation.interpolate(x, xTable, yTable, yStride, inputOrder, outputOrder, result) → Array.<number>
Interpolates values using Hermite Polynomial Approximation.
参数名称 | 类型 | 描述信息 |
---|---|---|
x |
number | The independent variable for which the dependent variables will be interpolated. |
xTable |
Array.<number> | 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 |
Array.<number> | 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 |
number | The number of dependent variable values in yTable corresponding to each independent variable value in xTable. |
inputOrder |
number | The number of derivatives supplied for input. |
outputOrder |
number | The number of derivatives desired for output. |
result |
Array.<number> | 可选 An existing array into which to store the result. |
返回值:
The array of interpolated values, or the result parameter if one was provided.
static Cesium.HermitePolynomialApproximation.interpolateOrderZero(x, xTable, yTable, yStride, result) → Array.<number>
Interpolates values using Hermite Polynomial Approximation.
参数名称 | 类型 | 描述信息 |
---|---|---|
x |
number | The independent variable for which the dependent variables will be interpolated. |
xTable |
Array.<number> | 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 |
Array.<number> | 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 |
number | The number of dependent variable values in yTable corresponding to each independent variable value in xTable. |
result |
Array.<number> | 可选 An existing array into which to store the result. |
返回值:
The array of interpolated values, or the result parameter if one was provided.