logdmvn: Density matrix of input matrix Y over classes This function...

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

Density matrix of input matrix Y over classes This function use dmvnrm2 function in Rcpp which compute a density matrix for each input over each class

Usage

1

Arguments

Y

data matrix

mean

mean parameter matrix with each row the mean parameter of specific class

sigma

scale/variance parameter cube with each slice the variance matrix of specific class

Value

return the density matrix

Examples

1
2
3
4
5
6
7
8
Y = Readjpeg(shuffle_train)
N = nrow(Y)
p = ncol(Y)
K = 2
prob = rep(1/K, K)
mean = matrix(rnorm(K*p), K, p)
sigma = array(rep(diag(p), K), dim = c(p, p, K))
logdmvn(Y, mean, sigma)

yehanxuan/tamu-689-final documentation built on Dec. 8, 2019, 5:25 p.m.