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

Cleanup in InverseGammaModel

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