varpar_fun: A function to update the variational parameters.

View source: R/varpar_fun.R

varpar_funR Documentation

A function to update the variational parameters.

Description

This function use the newton update realted function and perform update on the variational parameters in one iteration.

Usage

varpar_fun(W, m, V, mu, iSig, K, z)

Arguments

W

observation data: the count data, n*(K+1) matrix where K is the number of taxa.

m

variational parameter m from last iteration.

V

variational parameter Vfrom last iteration.

mu

mean parameter for the latent Gaussian variable, list of g vectors of (K+1).

iSig

(generalized) inverse variance parameter for the latent Gaussian variable, list of g (K+1)*(K+1) matrices.

K

number of taxa.

z

class membership matrix at the current iteration.

Examples

varpar_fun()

yuanfang90/LNMVGA documentation built on Jan. 29, 2024, 8:24 a.m.