LagrangePolynomialApproximation

Members

static Cesium.LagrangePolynomialApproximation.type : string

Gets the name of this interpolation algorithm.

Methods

static Cesium.LagrangePolynomialApproximation.getRequiredDataPoints(degree)number

给定所需的次数,返回插值所需的数据点数量。
Name Type Description
degree number 所需的插值次数。
Returns:
所需数据点的数量,以满足所需的插值次数。

static Cesium.LagrangePolynomialApproximation.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 中对应于 xTable 中每个自变量值的因变量值数量。
result Array.<number> optional 可选的现有数组,用于存储结果。
Returns:
插值后的值数组,或者如果提供了 result 参数,则返回该参数。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.