This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / scipy / interpolate / _polyint / BarycentricInterpolator / add_xi

function

scipy.interpolate._polyint:BarycentricInterpolator.add_xi

source: build-install/usr/lib/python3.14/site-packages/scipy/interpolate/_polyint.py:794

Signature

def add_xi(self, xi, yi = None)

Summary

Add more x values to the set to be interpolated.

Extended Summary

The barycentric interpolation algorithm allows easy updating by adding more points for the polynomial to pass through.

Parameters

xi : array_like

The x coordinates of the points that the polynomial should pass through.

yi : array_like, optional

The y coordinates of the points the polynomial should pass through. Should have shape (xi.size, R); if R > 1 then the polynomial is vector-valued. If yi is not given, the y values will be supplied later. yi should be given if and only if the interpolator has y values specified.

Notes

The new points added by add_xi are not randomly permuted so there is potential for numerical instability, especially for a large number of points. If this happens, please reconstruct interpolation from scratch instead.

Aliases

  • scipy.interpolate.BarycentricInterpolator.add_xi