Function that takes desrired mean, distance, and probability, and outputs another function to be optimized. Adapted into beta_pal.

get_objective(desired_mean, desired_dist, desired_mass)

Arguments

desired_mean

expected_value.

desired_dist

within.

desired_mass

this_much.

This function is called by beta_pal internally.

Details

This solution coded by by this most helpful gist.