scipy.interpolate.BarycentricInterpolator.__call__

BarycentricInterpolator.__call__(x)[source]

Evaluate the interpolating polynomial at the points x

Parameters :

x : scalar or array-like of length M

Returns :

y : scalar or array-like of length R or length M or M by R

The shape of y depends on the shape of x and whether the interpolator is vector-valued or scalar-valued.

Notes

Currently the code computes an outer product between x and the weights, that is, it constructs an intermediate array of size N by M, where N is the degree of the polynomial.

Previous topic

scipy.interpolate.BarycentricInterpolator

Next topic

scipy.interpolate.BarycentricInterpolator.add_xi