Skip to content

Commit

Permalink
fix parsing of Rayleigh distribution (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-faria committed Nov 15, 2022
1 parent 62a6e70 commit f79729c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pykima/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ def _prior_to_dist():
'Kumaraswamy': kumaraswamy,
'Laplace': stats.laplace,
'Cauchy': stats.cauchy,
'Rayleigh': lambda scale: stats.rayleigh(scale=scale),
'InvGamma': lambda shape, scale: stats.invgamma(shape, scale=scale),
'Fixed': Fixed,
'Triangular': lambda lo, ce, up: stats.triang(c=(ce-lo)/(up-lo),
Expand Down Expand Up @@ -420,7 +421,7 @@ def find_prior_parameters(prior):
threepars = ['Triangular']
twopars = [
'LogUniform', 'ModifiedLogUniform', 'Gaussian', 'Kumaraswamy',
'Cauchy', 'InvGamma'
'Cauchy', 'Rayleigh', 'InvGamma'
]

if name in threepars + twopars:
Expand Down

0 comments on commit f79729c

Please sign in to comment.