o
    `^hé  ã                   @   sÚ   d Z ddlT ddlT ddlT ddlmZ ddlT ddlT ddlT ddl	T ddl
T ddlmZmZmZ ddlT ddlT ddlmZ ddlT ddlmZmZmZmZmZmZmZ dd„ eƒ D ƒZd	d
lmZ ee ƒZ![e"Z#dS )aÕ  
========================================
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 <http://www.netlib.org/dierckx/>`__
and DFITPACK functions.

Univariate interpolation
========================

.. autosummary::
   :toctree: generated/

   interp1d
   BarycentricInterpolator
   KroghInterpolator
   barycentric_interpolate
   krogh_interpolate
   pchip_interpolate
   CubicHermiteSpline
   PchipInterpolator
   Akima1DInterpolator
   CubicSpline
   PPoly
   BPoly
   FloaterHormannInterpolator


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
   NdBSpline

1-D Splines
===========

.. autosummary::
   :toctree: generated/

   BSpline
   make_interp_spline
   make_lsq_spline
   make_smoothing_spline
   generate_knots
   make_splrep
   make_splprep

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

Rational Approximation
======================

.. autosummary::
   :toctree: generated/

   pade
   AAA

Additional tools
================

.. autosummary::
   :toctree: generated/

   lagrange
   approximate_taylor_polynomial

.. 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).
é   )Ú*)ÚRbf)Úgenerate_knotsÚmake_splrepÚmake_splprep)Ú	NdBSpline)ÚfitpackÚfitpack2ÚinterpolateÚ
ndgriddataÚpolyintÚrbfÚinterpndc                 C   s   g | ]	}|  d ¡s|‘qS )Ú_)Ú
startswith)Ú.0Ús© r   úX/home/air/shanriGPT/back/venv/lib/python3.10/site-packages/scipy/interpolate/__init__.pyÚ
<listcomp>Ñ   s    r   é    )ÚPytestTesterN)$Ú__doc__Ú_interpolateÚ_fitpack_pyÚ	_fitpack2Ú_rbfr   Ú
_rbfinterpÚ_polyintÚ_cubicÚ_ndgriddataÚ	_bsplinesÚ_fitpack_repror   r   r   Ú_padeÚ_rgiÚ
_ndbspliner   Ú_bary_rationalÚ r   r	   r
   r   r   r   r   ÚdirÚ__all__Úscipy._lib._testutilsr   Ú__name__ÚtestÚPchipInterpolatorÚpchipr   r   r   r   Ú<module>   s,     3$