R/deltaup.R

deltaup <-
function(x,mug,sigma,sigmainv,G,n,delta){
	for(g in 1:G){
#		delta[,g] <- mahalanobis(x, mug[g,],sigmainv[,,g], inverted=TRUE)
	  delta[,g] <- maha(x, mug[g,], sigma[,,g])
	}
	delta
}

Try the mmtfa package in your browser

Any scripts or data that you put into this service are public.

mmtfa documentation built on May 2, 2019, 1:45 p.m.