get_moments_cpp_eco_gamma_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_eco_gamma_doubletree(
prob1,
mu_gamma,
sigma_gamma,
E_beta,
E_beta_sq,
anc1,
leaf_desc
)
prob1 |
variational probabilities; |
mu_gamma |
variational Gaussian means (for |
sigma_gamma |
variational Gaussian variances (for |
E_beta, E_beta_sq |
J by K by pL1 each of dimension pL1 by K-1. |
anc1 |
|
leaf_desc |
an integer vector of leaf descendant ids under consideration |
a List
return List::create(Named("E_beta")=E_beta, Named("E_beta_sq")=E_beta_sq);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.