English中文

HermitePolynomialApproximation

An InterpolationAlgorithm 用于执行 Hermite 插值。 for performing Hermite interpolation.

方法 Methods

static Cesium.HermitePolynomialApproximation.getRequiredDataPoints(degree, inputOrder)number

给定所需的度数,返回插值所需的数据点数量。 Given the desired degree, returns the number of data points required for interpolation.
名称 Name 类型 Type 默认值 Default 说明 Description
degree number 所需的插值程度。 The desired degree of interpolation.
inputOrder number 0 可选 optional 输入的顺序(0 表示仅数据,1 表示数据及其导数等)。 The order of the inputs (0 means just the data, 1 means the data and its derivative, etc).
返回: Returns:
所需插值程度所需的数据点数量。 The number of required data points needed for the desired degree of interpolation.
抛出: Throws:

static Cesium.HermitePolynomialApproximation.interpolate(x, xTable, yTable, yStride, inputOrder, outputOrder, result)Array.<number>

使用 Hermite 多项式近似对值进行插值。 Interpolates values using Hermite Polynomial Approximation.
名称 Name 类型 Type 说明 Description
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> 用于插值的因变量数组。对于时间 1 和时间 2 的一组三个相关值 (p,q,w),应如下所示:{p1, q1, w1, p2, q2, w2}。 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 yTable 中与 xTable 中每个自变量值相对应的因变量值的数量。 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> 可选 optional 用于存储结果的现有数组。 An existing array into which to store the result.
返回: Returns:
插值数组,或结果参数(如果提供)。 The array of interpolated values, or the result parameter if one was provided.

static Cesium.HermitePolynomialApproximation.interpolateOrderZero(x, xTable, yTable, yStride, result)Array.<number>

使用 Hermite 多项式近似对值进行插值。 Interpolates values using Hermite Polynomial Approximation.
名称 Name 类型 Type 说明 Description
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> 用于插值的因变量数组。对于时间 1 和时间 2 的一组三个相关值 (p,q,w),应如下所示:{p1, q1, w1, p2, q2, w2}。 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 yTable 中与 xTable 中每个自变量值相对应的因变量值的数量。 The number of dependent variable values in yTable corresponding to each independent variable value in xTable.
result Array.<number> 可选 optional 用于存储结果的现有数组。 An existing array into which to store the result.
返回: Returns:
插值数组,或结果参数(如果提供)。 The array of interpolated values, or the result parameter if one was provided.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.