core.density.interpolation.interpolated_log_prob

core.density.interpolation.interpolated_log_prob(
    sample_points,
    values,
    evaluation_point,
)

Given a distribution discretized on a grid, return a sample and the log prob from an interpolated distribution. Wraps the bilby.core.prior.Interped class.

Parameters

Name Type Description Default
sample_points np.ndarray x values for samples required
values np.ndarray y values for samples. The distribution does not have to be initially normalized, although the final log_prob will be. required
evaluation_point float x value at which to evaluate log_prob. required

Returns

Name Type Description
float log_prob