Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gregory Ashton
PyFstat
Commits
08253913
Commit
08253913
authored
Oct 18, 2016
by
Gregory Ashton
Browse files
Adds prior posterior for halfnorm
parent
ad015c82
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyfstat.py
View file @
08253913
...
...
@@ -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'
]))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment