bayespy.inference.vmp.nodes.gamma.GammaDistribution.compute_moments_and_cgf

GammaDistribution.compute_moments_and_cgf(phi, mask=True)[source]

Compute the moments and g(\phi).

\overline{\mathbf{u}}  (\boldsymbol{\phi})
&=
\begin{bmatrix}
  - \frac{\phi_2} {\phi_1}
  \\
  \psi(\phi_2) - \log(-\phi_1)
\end{bmatrix}
\\
g_{\boldsymbol{\phi}} (\boldsymbol{\phi})
&=
TODO