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

Add properties to InverseGamma

parent df4c4cac
......@@ -24,7 +24,6 @@ from ..compat import *
from import PowerSpace
from import UnstructuredDomain
from ..field import Field
from ..multi_field import MultiField
from ..multi_domain import MultiDomain
from ..sugar import makeOp, sqrt
from ..operators.operator import Operator
......@@ -149,3 +148,7 @@ class AmplitudeModel(Operator):
def ceps(self):
return self._ceps
def norm_phi_mean(self):
return self._norm_phi_mean
......@@ -64,3 +64,11 @@ class InverseGammaModel(Operator):
def inverseIG(self, u, alpha, q):
res = norm.ppf(invgamma.cdf(u.local_data, alpha, scale=q))
return Field.from_local_data(u.domain, res)
def alpha(self):
return self._alpha
def q(self):
return self._q
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