math.interpolator.Spline1 Extends
A one dimensional cubic spline interpolator with natural boundary conditions.

Inheritance

Constructor

goog.math.interpolator.Spline1()

Instance Methods

Public Protected Private
computeDerivatives(dxslope) !Array.<number>
Computes the derivative at each point of the spline such that the curve is C2. It uses not-a-knot boundary conditions.
Arguments:
dx : Array.<number>
The spacing between consecutive data points.
slope : Array.<number>
The slopes between consecutive data points.
Returns: !Array.<number>  The Spline derivative at each data point.
code »
computeSplineCoeffs_(xy) !Array.<!Array.<number>>
Solve for the spline coefficients such that the spline precisely interpolates the data points.
Arguments:
x : Array.<number>
The abscissa of the spline data points.
y : Array.<number>
The ordinate of the spline data points.
Returns: !Array.<!Array.<number>>  The spline interval coefficients.
code »
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.
code »
interpolate()
No description.
code »
setData()
No description.
code »

Instance Properties

coeffs_ :
The spline interval coefficients. Note that, in general, the length of coeffs and x is not the same.
Code »
x_ :
The abscissa of the data points.
Code »

Package math.interpolator

Package Reference