update_rmat_with_F_doubletree: Update the variational probabilities of each observation in...

View source: R/RcppExports.R

update_rmat_with_F_doubletreeR Documentation

Update the variational probabilities of each observation in one of K classes

Description

This function updates the N by K matrix rmat in the package

Usage

update_rmat_with_F_doubletree(curr_F, emat)

Arguments

curr_F

from F_doubletree

emat

matrix (N by K); row sums are one - the class probabilities for each observation.

Value

N by K variational multinomial probabilities for the posterior distribution of N people's membership in the K classes in tree1; row sums are 1s.


zhenkewu/doubletree documentation built on Oct. 21, 2023, 7:04 a.m.