interpolate

fun interpolate(x: Double, xTable: ReadonlyArray<Double>, yTable: ReadonlyArray<Double>, yStride: Double, inputOrder: Int, outputOrder: Int, result: ReadonlyArray<Double>? = definedExternally): ReadonlyArray<Double>(source)

Interpolates values using Hermite Polynomial Approximation.

Return

The array of interpolated values, or the result parameter if one was provided.

Parameters

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.

See also