{ } Raw JSON

bundles / scipy 1.17.1 / scipy / interpolate / _polyint / BarycentricInterpolator / set_yi

function

scipy.interpolate._polyint:BarycentricInterpolator.set_yi

source: /scipy/interpolate/_polyint.py :747

Signature

def   set_yi ( self yi axis = None )

Summary

Update the y values to be interpolated

Extended Summary

The barycentric interpolation algorithm requires the calculation of weights, but these depend only on the xi. The yi can be changed at any time.

Parameters

yi : array_like

The y-coordinates of the points the polynomial will pass through. If None, the y values must be supplied later.

axis : int, optional

Axis in the yi array corresponding to the x-coordinate values.

Aliases

  • scipy.interpolate.BarycentricInterpolator.set_yi