Commit 6bc21c87 by Martin Reinecke

### merge master

parents 37a6c3da c0bc65a3
 ... @@ -25,7 +25,6 @@ from ..operators.contraction_operator import ContractionOperator ... @@ -25,7 +25,6 @@ from ..operators.contraction_operator import ContractionOperator from ..operators.distributors import PowerDistributor from ..operators.distributors import PowerDistributor from ..operators.harmonic_operators import HarmonicTransformOperator from ..operators.harmonic_operators import HarmonicTransformOperator from ..operators.simple_linear_operators import FieldAdapter from ..operators.simple_linear_operators import FieldAdapter from ..sugar import exp def CorrelatedField(s_space, amplitude_model): def CorrelatedField(s_space, amplitude_model): ... ...
 ... @@ -31,6 +31,27 @@ from ..sugar import makeOp ... @@ -31,6 +31,27 @@ from ..sugar import makeOp class InverseGammaModel(Operator): class InverseGammaModel(Operator): def __init__(self, domain, alpha, q): def __init__(self, domain, alpha, q): """Model which transforms a Gaussian into an inverse gamma distribution. The pdf of the inverse gamma distribution is defined as follows: .. math:: \frac {\beta ^{\alpha }}{\Gamma (\alpha )}}x^{-\alpha -1}\exp \left(-{\frac {\beta }{x}}\right) That means that for large x the pdf falls off like x^(-alpha -1). The mean of the pdf is at q / (alpha - 1) if alpha > 1. The mode is q / (alpha + 1). Parameters ---------- domain : Domain, tuple of Domain or DomainTuple The domain on which the field shall be defined. This is at the same time the domain and the target of the operator. alpha : float The alpha-parameter of the inverse-gamma distribution. q : float The q-parameter of the inverse-gamma distribution. """ self._domain = self._target = DomainTuple.make(domain) self._domain = self._target = DomainTuple.make(domain) self._alpha = alpha self._alpha = alpha self._q = q self._q = q ... ...
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!