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 ? Deep Learning avec Python
et Keras et Tensorflow
Voir le programme détaillé
Classe « UnivariateSpline »

Méthode scipy.interpolate.UnivariateSpline.integral

Signature de la méthode integral

def integral(self, a, b) 

Description

help(UnivariateSpline.integral)

Return definite integral of the spline between two given points.

Parameters
----------
a : float
    Lower limit of integration.
b : float
    Upper limit of integration.

Returns
-------
integral : float
    The value of the definite integral of the spline between limits.

Examples
--------
>>> import numpy as np
>>> from scipy.interpolate import UnivariateSpline
>>> x = np.linspace(0, 3, 11)
>>> y = x**2
>>> spl = UnivariateSpline(x, y)
>>> spl.integral(0, 3)
9.0

which agrees with :math:`\int x^2 dx = x^3 / 3` between the limits
of 0 and 3.

A caveat is that this routine assumes the spline to be zero outside of
the data limits:

>>> spl.integral(-1, 4)
9.0
>>> spl.integral(-1, 0)
0.0



Vous êtes un professionnel et vous avez besoin d'une formation ? Programmation Python
Les compléments
Voir le programme détaillé