Breakpoints. The same x
which was passed to the constructor.
Coefficients of the polynomials on each segment. The trailing dimensions match the dimensions of y
, excluding axis
. For example, if y
is 1-D, then c[k, i]
is a coefficient for (x-x[i])**(3-k)
on the segment between x[i]
and x[i+1]
.
Interpolation axis. The same axis which was passed to the constructor.
The result is represented as a PPoly
instance.
If you want to create a higher-order spline matching higher-order derivatives, use :None:None:`BPoly.from_derivatives`
.
1-D array containing values of the independent variable. Values must be real, finite and in strictly increasing order.
Array containing values of the dependent variable. It can have arbitrary number of dimensions, but the length along axis
(see below) must match the length of x
. Values must be finite.
Array containing derivatives of the dependent variable. It can have arbitrary number of dimensions, but the length along axis
(see below) must match the length of x
. Values must be finite.
Axis along which y
is assumed to be varying. Meaning that for x[i]
the corresponding values are np.take(y, i, axis=axis)
. Default is 0.
If bool, determines whether to extrapolate to out-of-bounds points based on first and last intervals, or to return NaNs. If 'periodic', periodic extrapolation is used. If None (default), it is set to True.
Piecewise-cubic interpolator matching values and first derivatives.
Akima1DInterpolator
Akima 1D interpolator.
CubicSpline
Cubic spline data interpolator.
PPoly
Piecewise polynomial in terms of coefficients and breakpoints
PchipInterpolator
PCHIP 1-D monotonic cubic interpolator.
The following pages refer to to this document either explicitly or contain code examples using this.
scipy.interpolate._cubic.PchipInterpolator
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them