HermitePolynomialApproximation

Members

static Cesium.HermitePolynomialApproximation.type : string

Gets the name of this interpolation algorithm.

Methods

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

给定所需的次数,返回插值所需的数据点数量。
Name Type Default Description
degree number 所需的插值次数。
inputOrder number 0 optional 输入的阶数(0 表示仅数据,1 表示数据及其导数,依此类推)。
Returns:
所需的插值次数所需的数据点数。
Throws:

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

使用赫尔米特多项式近似进行值的插值。
Name Type Description
x number 要插值的自变量。
xTable Array.<number> 用于插值的自变量数组。该数组中的值必须按升序排列,并且数组中不能出现重复值。
yTable Array.<number> 用于插值的因变量数组。对于在时间1和时间2处的一组三个因变量值 (p,q,w),应如下:{p1, q1, w1, p2, q2, w2}。
yStride number yTable 中每个自变量值在 xTable 中对应的因变量值的数量。
inputOrder number 输入提供的导数数量。
outputOrder number 输出所需的导数数量。
result Array.<number> optional 一个现有数组,用于存储结果。
Returns:
插值后的值数组,或者如果提供了 result 参数,则返回该参数。

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

使用赫米特多项式近似插值。
Name Type Description
x number 要进行插值的自变量。
xTable Array.<number> 用于插值的自变量数组。该数组中的值必须按升序排列,且相同的值不得重复。
yTable Array.<number> 用于插值的因变量数组。对于在时间 1 和时间 2 的三个因变量值 (p,q,w) 的集合,应如下排列:{p1, q1, w1, p2, q2, w2}。
yStride number yTable 中每个自变量值对应的因变量值的数量。
result Array.<number> optional 用于存储结果的现有数组。
Returns:
插值后的值数组,如果提供了 result 参数,则返回该参数。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.