Conditional distributions for a mixture model are not a mixture of
conditional distributions. Instead they must be evaluated from the
mixture joint and marginals. This PR fixes this, implemeted in
cube.get_conditional_mass_weighted_distributions.
Also added,
cube.construct_volume_element: a clever ;) generic method for
getting volume elements
component.get_p_vx was needed in order to get the conditional p(v|x)
remove p(v|t,x) from the cube (as this would have required
calculating p(v,t,x) - not needed right now)
Conditional distributions for a mixture model are not a mixture of conditional distributions. Instead they must be evaluated from the mixture joint and marginals. This PR fixes this, implemeted in
cube.get_conditional_mass_weighted_distributions
.Also added,
cube.construct_volume_element
: a clever ;) generic method for getting volume elementscomponent.get_p_vx
was needed in order to get the conditional p(v|x)p(v|t,x)
from the cube (as this would have required calculating p(v,t,x) - not needed right now)