Commit 08253913 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Adds prior posterior for halfnorm

parent ad015c82
......@@ -845,6 +845,11 @@ class MCMCSearch(BaseSearchClass):
upper = prior_dict['loc'] + normal_stds * prior_dict['scale']
x = np.linspace(lower, upper, N)
prior = prior_func(x)
elif prior_dict['type'] == 'halfnorm':
lower = prior_dict['loc']
upper = prior_dict['loc'] + normal_stds * prior_dict['scale']
x = np.linspace(lower, upper, N)
prior = [prior_func(xi) for xi in x]
else:
raise ValueError('Not implemented for prior type {}'.format(
prior_dict['type']))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment