core.density.interpolation.interpolated_log_prob_multi

core.density.interpolation.interpolated_log_prob_multi(
    sample_points,
    values,
    evaluation_points,
    num_processes=1,
)

Given a distribution discretized on a grid, the log prob at a specific point using an interpolated distribution. Wraps the bilby.core.prior.Interped class. Works with multiprocessing.

Parameters

Name Type Description Default
sample_points (np.ndarray, shape(N)) x values for samples required
values (np.ndarray, shape(B, N)) y values for samples. The distributions do not have to be initially normalized, although the final log_probs will be. B = batch dimension. required
evaluation_points (np.ndarray, shape(B)) x values at which to evaluate log_prob. required
num_processes int Number of parallel processes to use. 1

Returns

Name Type Description
(np.ndarray, np.ndarray) : sample and log_prob arrays, each of length B