bayespy.inference.vmp.nodes.dirichlet.DirichletDistribution.compute_moments_and_cgf

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

Compute the moments and g(\phi).

\overline{\mathbf{u}}  (\boldsymbol{\phi})
&=
\begin{bmatrix}
  \psi(\phi_1) - \psi(\sum_d \phi_{1,d})
\end{bmatrix}
\\
g_{\boldsymbol{\phi}} (\boldsymbol{\phi})
&=
TODO