bilby.core.utils.calculus

Functions

derivatives(vals, func[, releps, abseps, ...])

Calculate the partial derivatives of a function at a set of values.

logtrapzexp(lnf, dx)

Perform trapezium rule integration for the logarithm of a function on a grid.

round_up_to_power_of_two(x)

Round up to the next power of two

Classes

BoundedRectBivariateSpline(x, y, z[, bbox, ...])

WrappedInterp1d(x, y[, kind, axis, copy, ...])

A wrapper around scipy interp1d which sets equality-by-instantiation and makes sure that the output is a float if the input is a float or int.