Skip to content
Snippets Groups Projects
Commit c1ba0c60 authored by Philipp Arras's avatar Philipp Arras
Browse files

Cleanup in InverseGammaModel

parent 08f43b49
No related branches found
No related tags found
No related merge requests found
......@@ -56,12 +56,12 @@ class InverseGammaModel(Operator):
return Linearization(points, jac)
@staticmethod
def IG(self, field, alpha, q):
def IG(field, alpha, q):
foo = invgamma.ppf(norm.cdf(field.local_data), alpha, scale=q)
return Field.from_local_data(field.domain, foo)
@staticmethod
def inverseIG(self, u, alpha, q):
def inverseIG(u, alpha, q):
res = norm.ppf(invgamma.cdf(u.local_data, alpha, scale=q))
return Field.from_local_data(u.domain, res)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment