Commit 33320b95 authored by Philipp Arras's avatar Philipp Arras
Browse files

Add make method to inverse gamma model

parent 49611157
......@@ -37,6 +37,12 @@ class InverseGammaModel(Model):
self._q = q
self._key = key
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)
Supports Markdown
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