Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Coder avec une
Intelligence Artificielle
Voir le programme détaillé
Module « scipy.interpolate »

Classe « PPoly »

Informations générales

Héritage

builtins.object
    _PPolyBase
        PPoly

Définition

class PPoly(_PPolyBase):

help(PPoly)

Piecewise polynomial in terms of coefficients and breakpoints

The polynomial between ``x[i]`` and ``x[i + 1]`` is written in the
local power basis::

    S = sum(c[m, i] * (xp - x[i])**(k-m) for m in range(k+1))

where ``k`` is the degree of the polynomial.

Parameters
----------
c : ndarray, shape (k, m, ...)
    Polynomial coefficients, order `k` and `m` intervals.
x : ndarray, shape (m+1,)
    Polynomial breakpoints. Must be sorted in either increasing or
    decreasing order.
extrapolate : bool or 'periodic', optional
    If bool, determines whether to extrapolate to out-of-bounds points
    based on first and last intervals, or to return NaNs. If 'periodic',
    periodic extrapolation is used. Default is True.
axis : int, optional
    Interpolation axis. Default is zero.

Attributes
----------
x : ndarray
    Breakpoints.
c : ndarray
    Coefficients of the polynomials. They are reshaped
    to a 3-D array with the last dimension representing
    the trailing dimensions of the original coefficient array.
axis : int
    Interpolation axis.

Methods
-------
__call__
derivative
antiderivative
integrate
solve
roots
extend
from_spline
from_bernstein_basis
construct_fast

See also
--------
BPoly : piecewise polynomials in the Bernstein basis

Notes
-----
High-order polynomials in the power basis can be numerically
unstable. Precision problems can start to appear for orders
larger than 20-30.

Constructeur(s)

Signature du constructeur Description
__init__(self, c, x, extrapolate=None, axis=0)

Liste des attributs statiques

Attributs statiques hérités de la classe _PPolyBase

axis, c, extrapolate, x

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
antiderivative(self, nu=1)
derivative(self, nu=1)
from_bernstein_basis(bp, extrapolate=None)
from_spline(tck, extrapolate=None)
integrate(self, a, b, extrapolate=None)
roots(self, discontinuity=True, extrapolate=None)
solve(self, y=0.0, discontinuity=True, extrapolate=None)

Méthodes héritées de la classe _PPolyBase

__call__, __init_subclass__, __subclasshook__, construct_fast, extend

Méthodes héritées de la classe object

__delattr__, __dir__, __format__, __getattribute__, __getstate__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__

Vous êtes un professionnel et vous avez besoin d'une formation ? Calcul scientifique
avec Python
Voir le programme détaillé