elbo_fun | R Documentation |
An internal function to calculate the expected log sum exponential term for calculation of the elbo This function takes in the parameters for all groups and output a matrix, with the element from the ith row and gth column representing the elbo calculated for the ith observation under the condition that it comes from the gth group.
elbo_fun(W, m, Vmat, V, mu, red_sig, Sig, G)
W |
count data |
m |
variational parameter m |
Vmat |
internal parameter, a matrix of n rows as n being number of observations; each row is the diagonal element of the variational parameter V. |
V |
variational parameter V, a list of n matrices, n being number of observations. |
mu |
mean parameter for the latent Gaussian variable. |
red_sig |
internal parameter, a list of G K*K dimensional matrices from the variance parameter. |
Sig |
variance parameter for the latent Gaussian variable, a list of G (K+1)*(K+1) matrices, G is the numbe of component and K+1 is the number of taxa (dimension of the count data). |
G |
number of components. |
elbo_fun()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.