bundles / scipy latest / scipy / interpolate / _polyint / BarycentricInterpolator / add_xi
function
scipy.interpolate._polyint:BarycentricInterpolator.add_xi
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_likeThe x coordinates of the points that the polynomial should pass through.
yi: array_like, optionalThe 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. Ifyiis not given, the y values will be supplied later.yishould 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