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
ift
NIFTy
Commits
33320b95
Commit
33320b95
authored
Jul 30, 2018
by
Philipp Arras
Browse files
Add make method to inverse gamma model
parent
49611157
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/library/inverse_gamma_model.py
View file @
33320b95
...
...
@@ -37,6 +37,12 @@ class InverseGammaModel(Model):
self
.
_q
=
q
self
.
_key
=
key
@
classmethod
def
make
(
cls
,
actual_position
,
alpha
,
q
,
key
):
pos
=
cls
.
inverseIG
(
actual_position
,
alpha
,
q
)
mf
=
MultiField
.
from_dict
({
key
:
pos
})
return
cls
(
mf
,
alpha
,
q
,
key
)
def
at
(
self
,
position
):
return
self
.
__class__
(
position
,
self
.
_alpha
,
self
.
_q
,
self
.
_key
)
...
...
Write
Preview
Supports
Markdown
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