goog.math.interpolator.Spline1
Classgoog.math.interpolator.Spline1()
A one dimensional cubic spline interpolator with natural boundary conditions. @implements {goog.math.interpolator.Interpolator1}
.computeDerivatives(dx, slope)
[protected]Computes the derivative at each point of the spline such that the curve is C2. It uses not-a-knot boundary conditions.
dx
{Array
.<number
>}
slope
{Array
.<number
>}
Array
.<number
>}
.getInverse()
Note that the inverse of a cubic spline is not a cubic spline in general. As a result the inverse implementation is only approximate. In particular, it only guarantees the exact inverse at the original input data points passed to setData.
.interpolate()
.setData()