get_objective.Rd
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)
desired_mean | expected_value. |
---|---|
desired_dist | within. |
desired_mass | this_much. This function is called by beta_pal internally. |
This solution coded by by this most helpful gist.