This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / interpolate / _polyint / BarycentricInterpolator / set_yi

function

scipy.interpolate._polyint:BarycentricInterpolator.set_yi

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

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