R/helper.r
posterior_probs.Rd
Computes posterior probabilities via Bayes Theorem under normality
posterior_probs(x, means, covs, priors)
x | matrix of observations |
---|---|
means | list of means for each class |
covs | list of covariance matrices for each class |
priors | list of prior probabilities for each class |
matrix of posterior probabilities for each observation