Commit c42dc50b authored by Philipp Arras's avatar Philipp Arras
Browse files

Make inverseIG method field compatible

parent bb471368
......@@ -72,8 +72,7 @@ class InverseGammaModel(Model):
foo = invgamma.ppf(norm.cdf(field.local_data), alpha, scale=q)
return Field.from_local_data(field.domain, foo)
# MR FIXME: why does this take an np.ndarray instead of a Field?
def inverseIG(u, alpha, q):
res = norm.ppf(invgamma.cdf(u, alpha, scale=q))
return res
res = norm.ppf(invgamma.cdf(u.local_data, alpha, scale=q))
return Field.from_local_data(u.domain, res)
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