diff --git a/src/pySODM/optimization/objective_functions.py b/src/pySODM/optimization/objective_functions.py index 18eee64..7a6d7c4 100644 --- a/src/pySODM/optimization/objective_functions.py +++ b/src/pySODM/optimization/objective_functions.py @@ -163,7 +163,7 @@ def log_prior_triangle(x, args): Returns ------- - Log probability of sample x in light of a triangle prior distribution. + Log probability of sample x in light of a triangular prior distribution. """ low, high, mode = args return triang.logpdf(x, loc=low, scale=high, c=mode) @@ -235,9 +235,7 @@ def log_prior_custom(x, args): Example use: ------------ - density_my_par, bins_my_par = np.histogram(samples['my_par'], bins=20, density=True) # `samples['my_par']` is a list containing samples from a distribution - - density_my_par_norm = density_my_par/np.sum(density_my_par) # normalise to probability + density_my_par, bins_my_par = np.histogram(samples['my_par'], bins=50, density=True) # a list of samples is converted to a binned PDF prior_fcn = log_prior_custom # this function