bilby.gw.prior.WrappedInterp1d
- class bilby.gw.prior.WrappedInterp1d(x, y, kind='linear', axis=-1, copy=True, bounds_error=None, fill_value=nan, assume_sorted=False)[source]
Bases:
interp1d
A wrapper around scipy interp1d which sets equality-by-instantiation
- __init__(x, y, kind='linear', axis=-1, copy=True, bounds_error=None, fill_value=nan, assume_sorted=False)[source]
Initialize a 1-D linear interpolation class.
- __call__(x)[source]
Evaluate the interpolant
- Parameters:
- xarray_like
Point or points at which to evaluate the interpolant.
- Returns:
- yarray_like
Interpolated values. Shape is determined by replacing the interpolation axis in the original array with the shape of x.
Notes
Input values x must be convertible to float values like int or float.
Methods
__init__
(x, y[, kind, axis, copy, ...])Initialize a 1-D linear interpolation class.
Attributes
dtype
The fill value.
- property fill_value
The fill value.