get_moments_cpp_doubletree | R Documentation |
Get all moments that need updating when iterating over internal and leaf nodes; for both trees. When updating a node u, all the moments of the descendant nodes will be changed. A recalculation of the moments are necessary when moving on to another node.
get_moments_cpp_doubletree(
prob1,
prob2,
mu_gamma,
sigma_gamma,
mu_alpha,
sigma_alpha,
anc1,
anc2,
cardanc1,
cardanc2
)
prob1, prob2 |
variational probabilities; |
mu_gamma |
variational Gaussian means (for |
sigma_gamma |
variational Gaussian variances (for |
mu_alpha |
variational Gaussian mean vectors (for |
sigma_alpha |
variational Gaussian variances (for
|
anc1, anc2 |
|
cardanc1, cardanc2 |
|
a List
return List::create(Named("E_beta")=E_beta, Named("E_beta_sq")=E_beta_sq, Named("E_eta")=E_eta, Named("E_eta_sq")=E_eta_sq);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.