get_cf_dens function

Get counterfactual densities