interp_error¶
- sofia_redux.toolkit.interpolate.interpolate.interp_error(points, error, xi, cval=nan)[source]¶
Propagate errors using linear interpolation in N-dimensions
Allows linear interpolation of errors over 1 or multiple dimensions using
interp_error_1d
orinterp_error_nd
. Note, error propagation is only valid for linear interpolation in 1-dimension or linear interpolation through Delaunay triangulation in N-dimensions.- Parameters:
- pointsnumpy.ndarray (nsamples, ndim) or Delaunay triangulation
Coordinates of points or the pre-computed scipy.spatial.Delaunay triangulation.
- errorfloat or numpy.ndarray (nsamples,)
Error at each point.
- xinumpy.ndarray (npoints, ndim)
Points at which to interpolate data.
- cvalfloat, optional
Value to fill in requested interpolation points outside the data range.
- Returns:
- numpy.ndarray (npoints,)