Coverage for /home/martinb/.local/share/virtualenvs/camcops/lib/python3.6/site-packages/scipy/interpolate/__init__.py : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1"""
2========================================
3Interpolation (:mod:`scipy.interpolate`)
4========================================
6.. currentmodule:: scipy.interpolate
8Sub-package for objects used in interpolation.
10As listed below, this sub-package contains spline functions and classes,
111-D and multidimensional (univariate and multivariate)
12interpolation classes, Lagrange and Taylor polynomial interpolators, and
13wrappers for `FITPACK <http://www.netlib.org/dierckx/>`__
14and DFITPACK functions.
16Univariate interpolation
17========================
19.. autosummary::
20 :toctree: generated/
22 interp1d
23 BarycentricInterpolator
24 KroghInterpolator
25 barycentric_interpolate
26 krogh_interpolate
27 pchip_interpolate
28 CubicHermiteSpline
29 PchipInterpolator
30 Akima1DInterpolator
31 CubicSpline
32 PPoly
33 BPoly
36Multivariate interpolation
37==========================
39Unstructured data:
41.. autosummary::
42 :toctree: generated/
44 griddata
45 LinearNDInterpolator
46 NearestNDInterpolator
47 CloughTocher2DInterpolator
48 Rbf
49 interp2d
51For data on a grid:
53.. autosummary::
54 :toctree: generated/
56 interpn
57 RegularGridInterpolator
58 RectBivariateSpline
60.. seealso::
62 `scipy.ndimage.map_coordinates`
64Tensor product polynomials:
66.. autosummary::
67 :toctree: generated/
69 NdPPoly
721-D Splines
73===========
75.. autosummary::
76 :toctree: generated/
78 BSpline
79 make_interp_spline
80 make_lsq_spline
82Functional interface to FITPACK routines:
84.. autosummary::
85 :toctree: generated/
87 splrep
88 splprep
89 splev
90 splint
91 sproot
92 spalde
93 splder
94 splantider
95 insert
97Object-oriented FITPACK interface:
99.. autosummary::
100 :toctree: generated/
102 UnivariateSpline
103 InterpolatedUnivariateSpline
104 LSQUnivariateSpline
1082-D Splines
109===========
111For data on a grid:
113.. autosummary::
114 :toctree: generated/
116 RectBivariateSpline
117 RectSphereBivariateSpline
119For unstructured data:
121.. autosummary::
122 :toctree: generated/
124 BivariateSpline
125 SmoothBivariateSpline
126 SmoothSphereBivariateSpline
127 LSQBivariateSpline
128 LSQSphereBivariateSpline
130Low-level interface to FITPACK functions:
132.. autosummary::
133 :toctree: generated/
135 bisplrep
136 bisplev
138Additional tools
139================
141.. autosummary::
142 :toctree: generated/
144 lagrange
145 approximate_taylor_polynomial
146 pade
148.. seealso::
150 `scipy.ndimage.map_coordinates`,
151 `scipy.ndimage.spline_filter`,
152 `scipy.signal.resample`,
153 `scipy.signal.bspline`,
154 `scipy.signal.gauss_spline`,
155 `scipy.signal.qspline1d`,
156 `scipy.signal.cspline1d`,
157 `scipy.signal.qspline1d_eval`,
158 `scipy.signal.cspline1d_eval`,
159 `scipy.signal.qspline2d`,
160 `scipy.signal.cspline2d`.
162``pchip`` is an alias of `PchipInterpolator` for backward compatibility
163(should not be used in new code).
164"""
165from .interpolate import *
166from .fitpack import *
168# New interface to fitpack library:
169from .fitpack2 import *
171from .rbf import Rbf
173from .polyint import *
175from ._cubic import *
177from .ndgriddata import *
179from ._bsplines import *
181from ._pade import *
183__all__ = [s for s in dir() if not s.startswith('_')]
185from scipy._lib._testutils import PytestTester
186test = PytestTester(__name__)
187del PytestTester
189# Backward compatibility
190pchip = PchipInterpolator