lnprob

megabeast.ensemble_model.lnprob(phi, beast_dust_priors, lnp_data, lnp_grid_vals)[source]

Compute the log(likelihood) for the ensemble parameters

Parameters:
phi: floats

ensemble parameters

beast_dust_priors: PriorWeightsDust object

contains the data and functions for the dust ensemble model

lnp_data: dictonary

contains arrays of the lnp values and indexs to the BEAST model grid

lnp_grid_vals: dictonary

contains arrays of the beast parameters and priors for the sparse lnp saved model grid points

Returns:
log(likelihood): float