scipy 1.8.0 Pypi GitHub Homepage
Other Docs
BackRef

To remove in the future –– scipy.interpolate

Interpolation (:mod:`scipy.interpolate`)

.. currentmodule:: scipy.interpolate
    

Sub-package for objects used in interpolation.

As listed below, this sub-package contains spline functions and classes, 1-D and multidimensional (univariate and multivariate) interpolation classes, Lagrange and Taylor polynomial interpolators, and wrappers for FITPACK and DFITPACK functions.

Univariate interpolation

.. autosummary:: 
    :toctree:generated/
    interp1d
    BarycentricInterpolator
    KroghInterpolator
    barycentric_interpolate
    krogh_interpolate
    pchip_interpolate
    CubicHermiteSpline
    PchipInterpolator
    Akima1DInterpolator
    CubicSpline
    PPoly
    BPoly

Multivariate interpolation

Unstructured data:

.. autosummary:: 
    :toctree:generated/
    griddata
    LinearNDInterpolator
    NearestNDInterpolator
    CloughTocher2DInterpolator
    RBFInterpolator
    Rbf
    interp2d

For data on a grid:

.. autosummary:: 
    :toctree:generated/
    interpn
    RegularGridInterpolator
    RectBivariateSpline
.. seealso:: 
    `scipy.ndimage.map_coordinates`

Tensor product polynomials:

.. autosummary:: 
    :toctree:generated/
    NdPPoly

1-D Splines

.. autosummary:: 
    :toctree:generated/
    BSpline
    make_interp_spline
    make_lsq_spline

Functional interface to FITPACK routines:

.. autosummary:: 
    :toctree:generated/
    splrep
    splprep
    splev
    splint
    sproot
    spalde
    splder
    splantider
    insert

Object-oriented FITPACK interface:

.. autosummary:: 
    :toctree:generated/
    UnivariateSpline
    InterpolatedUnivariateSpline
    LSQUnivariateSpline

2-D Splines

For data on a grid:

.. autosummary:: 
    :toctree:generated/
    RectBivariateSpline
    RectSphereBivariateSpline

For unstructured data:

.. autosummary:: 
    :toctree:generated/
    BivariateSpline
    SmoothBivariateSpline
    SmoothSphereBivariateSpline
    LSQBivariateSpline
    LSQSphereBivariateSpline

Low-level interface to FITPACK functions:

.. autosummary:: 
    :toctree:generated/
    bisplrep
    bisplev

Additional tools

.. autosummary:: 
    :toctree:generated/
    lagrange
    approximate_taylor_polynomial
    pade
.. seealso:: 
    `scipy.ndimage.map_coordinates`,
    `scipy.ndimage.spline_filter`,
    `scipy.signal.resample`,
    `scipy.signal.bspline`,
    `scipy.signal.gauss_spline`,
    `scipy.signal.qspline1d`,
    `scipy.signal.cspline1d`,
    `scipy.signal.qspline1d_eval`,
    `scipy.signal.cspline1d_eval`,
    `scipy.signal.qspline2d`,
    `scipy.signal.cspline2d`.

pchip is an alias of PchipInterpolator for backward compatibility (should not be used in new code).

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

scipy

42 Elements
scipy.interpolate._fitpack2.UnivariateSpline.integral
scipy.interpolate._fitpack2.UnivariateSpline.derivatives
scipy.interpolate._pade.pade
scipy.interpolate._fitpack_py.splantider
scipy.interpolate._polyint.krogh_interpolate
scipy.interpolate._cubic.pchip_interpolate
scipy.interpolate._bsplines.BSpline
scipy.interpolate._ndgriddata.NearestNDInterpolator
scipy.interpolate._polyint.KroghInterpolator
scipy.interpolate._fitpack_py.insert
scipy.interpolate._bsplines.make_lsq_spline
scipy.interpolate._fitpack2.UnivariateSpline.derivative
scipy.interpolate._rbf.Rbf
scipy.interpolate._fitpack2.UnivariateSpline.antiderivative
scipy.interpolate._interpolate.RegularGridInterpolator
scipy.interpolate._fitpack_py.splder
scipy.interpolate._fitpack2.LSQUnivariateSpline
scipy.interpolate._fitpack2.UnivariateSpline
scipy.interpolate._bsplines.BSpline.integrate
scipy.interpolate._fitpack2.RectSphereBivariateSpline
scipy.interpolate._polyint.barycentric_interpolate
scipy.interpolate._polyint._Interpolator1DWithDerivatives.derivatives
scipy.interpolate._ndgriddata.griddata
scipy.interpolate._fitpack_impl.splrep
scipy.interpolate._interpolate.lagrange
scipy.special._ellip_harm.ellip_harm
scipy.interpolate._interpolate.PPoly.solve
scipy.interpolate._fitpack2.LSQSphereBivariateSpline
scipy.interpolate._fitpack2.SmoothSphereBivariateSpline
scipy.interpolate._polyint.approximate_taylor_polynomial
scipy.interpolate._interpolate.interpn
scipy.interpolate._fitpack_impl.splantider
scipy.interpolate._fitpack2.InterpolatedUnivariateSpline
scipy.interpolate._fitpack_py.splrep
scipy.interpolate._cubic.CubicSpline
scipy.interpolate._interpolate.interp2d
scipy.interpolate._interpolate.BPoly
scipy.interpolate.interpnd.LinearNDInterpolator
scipy.interpolate._rbfinterp.RBFInterpolator
scipy.interpolate._interpolate.interp1d
scipy.interpolate._fitpack_impl.splder
scipy.interpolate._bsplines.make_interp_spline

papyri

papyri.examples.example2

numpy

numpy.interp

Local connectivity graph

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


GitHub : /scipy/interpolate/__init__.py#0
type: <class 'module'>
Commit: