| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228 |
- """
- ========================================
- Interpolation (:mod:`scipy.interpolate`)
- ========================================
- .. currentmodule:: scipy.interpolate
- Sub-package for functions and objects used in interpolation.
- See the :ref:`user guide <tutorial-interpolate>` for recommendations on choosing a
- routine, and other usage details.
- Univariate interpolation
- ========================
- .. autosummary::
- :toctree: generated/
- make_interp_spline
- CubicSpline
- PchipInterpolator
- Akima1DInterpolator
- FloaterHormannInterpolator
- BarycentricInterpolator
- KroghInterpolator
- CubicHermiteSpline
- **Low-level data structures for univariate interpolation:**
- .. autosummary::
- :toctree: generated/
- PPoly
- BPoly
- BSpline
- Multivariate interpolation
- ==========================
- **Unstructured data**
- .. autosummary::
- :toctree: generated/
- LinearNDInterpolator
- NearestNDInterpolator
- CloughTocher2DInterpolator
- RBFInterpolator
- **For data on a grid:**
- .. autosummary::
- :toctree: generated/
- RegularGridInterpolator
- .. seealso::
- `scipy.ndimage.map_coordinates`,
- :ref:`An example wrapper for map_coordinates <tutorial-interpolate_cartesian-grids>`
- **Low-level data structures for tensor product polynomials and splines:**
- .. autosummary::
- :toctree: generated/
- NdPPoly
- NdBSpline
- 1-D spline smoothing and approximation
- ======================================
- .. autosummary::
- :toctree: generated/
- make_lsq_spline
- make_smoothing_spline
- make_splrep
- make_splprep
- generate_knots
- Rational Approximation
- ======================
- .. autosummary::
- :toctree: generated/
- AAA
- Interfaces to FITPACK routines for 1D and 2D spline fitting
- ===========================================================
- This section lists wrappers for `FITPACK <http://www.netlib.org/dierckx/>`__
- functionality for 1D and 2D smoothing splines. In most cases, users are better off
- using higher-level routines listed in previous sections.
- 1D FITPACK splines
- ------------------
- This package provides two sets of functionally equivalent wrappers: object-oriented and
- functional.
- **Functional FITPACK interface:**
- .. autosummary::
- :toctree: generated/
- splrep
- splprep
- splev
- splint
- sproot
- spalde
- splder
- splantider
- insert
- **Object-oriented FITPACK interface:**
- .. autosummary::
- :toctree: generated/
- UnivariateSpline
- InterpolatedUnivariateSpline
- LSQUnivariateSpline
- 2D FITPACK splines
- ------------------
- **For data on a grid:**
- .. autosummary::
- :toctree: generated/
- RectBivariateSpline
- RectSphereBivariateSpline
- **For unstructured data (OOP interface):**
- .. autosummary::
- :toctree: generated/
- BivariateSpline
- SmoothBivariateSpline
- SmoothSphereBivariateSpline
- LSQBivariateSpline
- LSQSphereBivariateSpline
- **For unstructured data (functional interface):**
- .. autosummary::
- :toctree: generated/
- bisplrep
- bisplev
- Additional tools
- ================
- .. autosummary::
- :toctree: generated/
- lagrange
- approximate_taylor_polynomial
- pade
- interpn
- griddata
- barycentric_interpolate
- krogh_interpolate
- pchip_interpolate
- Rbf
- interp1d
- interp2d
- .. seealso::
- `scipy.ndimage.map_coordinates`,
- `scipy.ndimage.spline_filter`,
- """ # noqa: E501
- from ._interpolate import *
- from ._fitpack_py import *
- from ._fitpack2 import *
- from ._rbf import Rbf
- from ._rbfinterp import *
- from ._polyint import *
- from ._cubic import *
- from ._ndgriddata import *
- from ._bsplines import *
- from ._fitpack_repro import generate_knots, make_splrep, make_splprep
- from ._pade import *
- from ._rgi import *
- from ._ndbspline import NdBSpline
- from ._bary_rational import *
- # Deprecated namespaces, to be removed in v2.0.0
- from . import fitpack, fitpack2, interpolate, ndgriddata, polyint, rbf, interpnd
- __all__ = [s for s in dir() if not s.startswith('_')]
- from scipy._lib._testutils import PytestTester
- test = PytestTester(__name__)
- del PytestTester
- # Backward compatibility
- pchip = PchipInterpolator
|