__init__.py 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. """
  2. ========================================
  3. Interpolation (:mod:`scipy.interpolate`)
  4. ========================================
  5. .. currentmodule:: scipy.interpolate
  6. Sub-package for objects used in interpolation.
  7. As listed below, this sub-package contains spline functions and classes,
  8. 1-D and multidimensional (univariate and multivariate)
  9. interpolation classes, Lagrange and Taylor polynomial interpolators, and
  10. wrappers for `FITPACK <http://www.netlib.org/dierckx/>`__
  11. and DFITPACK functions.
  12. Univariate interpolation
  13. ========================
  14. .. autosummary::
  15. :toctree: generated/
  16. interp1d
  17. BarycentricInterpolator
  18. KroghInterpolator
  19. barycentric_interpolate
  20. krogh_interpolate
  21. pchip_interpolate
  22. CubicHermiteSpline
  23. PchipInterpolator
  24. Akima1DInterpolator
  25. CubicSpline
  26. PPoly
  27. BPoly
  28. Multivariate interpolation
  29. ==========================
  30. Unstructured data:
  31. .. autosummary::
  32. :toctree: generated/
  33. griddata
  34. LinearNDInterpolator
  35. NearestNDInterpolator
  36. CloughTocher2DInterpolator
  37. RBFInterpolator
  38. Rbf
  39. interp2d
  40. For data on a grid:
  41. .. autosummary::
  42. :toctree: generated/
  43. interpn
  44. RegularGridInterpolator
  45. RectBivariateSpline
  46. .. seealso::
  47. `scipy.ndimage.map_coordinates`
  48. Tensor product polynomials:
  49. .. autosummary::
  50. :toctree: generated/
  51. NdPPoly
  52. 1-D Splines
  53. ===========
  54. .. autosummary::
  55. :toctree: generated/
  56. BSpline
  57. make_interp_spline
  58. make_lsq_spline
  59. make_smoothing_spline
  60. Functional interface to FITPACK routines:
  61. .. autosummary::
  62. :toctree: generated/
  63. splrep
  64. splprep
  65. splev
  66. splint
  67. sproot
  68. spalde
  69. splder
  70. splantider
  71. insert
  72. Object-oriented FITPACK interface:
  73. .. autosummary::
  74. :toctree: generated/
  75. UnivariateSpline
  76. InterpolatedUnivariateSpline
  77. LSQUnivariateSpline
  78. 2-D Splines
  79. ===========
  80. For data on a grid:
  81. .. autosummary::
  82. :toctree: generated/
  83. RectBivariateSpline
  84. RectSphereBivariateSpline
  85. For unstructured data:
  86. .. autosummary::
  87. :toctree: generated/
  88. BivariateSpline
  89. SmoothBivariateSpline
  90. SmoothSphereBivariateSpline
  91. LSQBivariateSpline
  92. LSQSphereBivariateSpline
  93. Low-level interface to FITPACK functions:
  94. .. autosummary::
  95. :toctree: generated/
  96. bisplrep
  97. bisplev
  98. Additional tools
  99. ================
  100. .. autosummary::
  101. :toctree: generated/
  102. lagrange
  103. approximate_taylor_polynomial
  104. pade
  105. .. seealso::
  106. `scipy.ndimage.map_coordinates`,
  107. `scipy.ndimage.spline_filter`,
  108. `scipy.signal.resample`,
  109. `scipy.signal.bspline`,
  110. `scipy.signal.gauss_spline`,
  111. `scipy.signal.qspline1d`,
  112. `scipy.signal.cspline1d`,
  113. `scipy.signal.qspline1d_eval`,
  114. `scipy.signal.cspline1d_eval`,
  115. `scipy.signal.qspline2d`,
  116. `scipy.signal.cspline2d`.
  117. ``pchip`` is an alias of `PchipInterpolator` for backward compatibility
  118. (should not be used in new code).
  119. """
  120. from ._interpolate import *
  121. from ._fitpack_py import *
  122. # New interface to fitpack library:
  123. from ._fitpack2 import *
  124. from ._rbf import Rbf
  125. from ._rbfinterp import *
  126. from ._polyint import *
  127. from ._cubic import *
  128. from ._ndgriddata import *
  129. from ._bsplines import *
  130. from ._pade import *
  131. from ._rgi import *
  132. # Deprecated namespaces, to be removed in v2.0.0
  133. from . import fitpack, fitpack2, interpolate, ndgriddata, polyint, rbf
  134. __all__ = [s for s in dir() if not s.startswith('_')]
  135. from scipy._lib._testutils import PytestTester
  136. test = PytestTester(__name__)
  137. del PytestTester
  138. # Backward compatibility
  139. pchip = PchipInterpolator