__init__.py 3.3 KB

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