math.interpolator.Pchip1 Extends goog.math.interpolator.Spline1
A one dimensional monotone cubic spline interpolator.

Inheritance

Constructor

goog.math.interpolator.Pchip1()

Instance Methods

Public Protected Private
computeDerivativeAtBoundary_(dx0dx1slope0slope1) number
Computes the derivative of a data point at a boundary.
Arguments:
dx0 : number
The spacing of the 1st data point.
dx1 : number
The spacing of the 2nd data point.
slope0 : number
The slope of the 1st data point.
slope1 : number
The slope of the 2nd data point.
Returns: number  The derivative at the 1st data point.
code »
computeDerivatives()
No description.
code »
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

constructor :
No description.
Code »
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 »

Static Properties

goog.math.interpolator.Pchip1.superClass_ :
No description.
Code »

Package math.interpolator

Package Reference