firecrown.utils.make_log_interpolator#
- firecrown.utils.make_log_interpolator(x, y)[source]#
Return a function object that does 1D spline interpolation.
If all the y values are greater than 0, the function interpolates log(y) as a function of log(x). Otherwise, the function interpolates y as a function of log(x). The resulting interpolater will not extrapolate; if called with an out-of-range argument it will raise a ValueError.
- Parameters:
x (
ndarray[tuple[int,...],dtype[int64]]) –y (
ndarray[tuple[int,...],dtype[float64]]) –
- Return type:
Callable[[ndarray[tuple[int,...],dtype[int64]]],ndarray[tuple[int,...],dtype[float64]]]