get_moments_cpp_eco_alpha_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_alpha_doubletree(
prob2,
mu_alpha,
sigma_alpha,
E_eta,
E_eta_sq,
anc2,
leaf_desc
)
prob2 |
|
mu_alpha |
variational Gaussian mean vectors (for |
sigma_alpha |
variational Gaussian variances (for
|
E_eta, E_eta_sq |
the intermediate moments to be updated. |
anc2 |
|
leaf_desc |
leaf descendants under consideration |
a List
return List::create(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.