colour.PchipInterpolator¶
-
class
colour.PchipInterpolator(x, y, *args, **kwargs)[source]¶ Interpolates a 1-D function using Piecewise Cubic Hermite Interpolating Polynomial interpolation.
-
y¶
Notes
This class is a wrapper around scipy.interpolate.PchipInterpolator class.
-
__init__(x, y, *args, **kwargs)[source]¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(x, y, *args, **kwargs)Initialize self.
antiderivative([nu])Construct a new piecewise polynomial representing the antiderivative.
construct_fast(c, x[, extrapolate, axis])Construct the piecewise polynomial without making checks.
derivative([nu])Construct a new piecewise polynomial representing the derivative.
extend(c, x[, right])Add additional breakpoints and coefficients to the polynomial.
from_bernstein_basis(bp[, extrapolate])Construct a piecewise polynomial in the power basis from a polynomial in Bernstein basis.
from_spline(tck[, extrapolate])Construct a piecewise polynomial from a spline
integrate(a, b[, extrapolate])Compute a definite integral over a piecewise polynomial.
roots([discontinuity, extrapolate])Find real roots of the the piecewise polynomial.
solve([y, discontinuity, extrapolate])Find real solutions of the the equation
pp(x) == y.Attributes
axiscextrapolatexGetter and setter property for the dependent and already known \(y\) variable.
-