posterior_probs: Computes posterior probabilities via Bayes Theorem under...

Description Usage Arguments Value

View source: R/helper.r

Description

Computes posterior probabilities via Bayes Theorem under normality

Usage

1
posterior_probs(x, means, covs, priors)

Arguments

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

Value

matrix of posterior probabilities for each observation


sparsediscrim documentation built on July 1, 2021, 9:07 a.m.