Internal C++ algorithm for computing the cost matrix.

Gmixt_algo_cpp(zi, lgi, P, mvec, wk, svec, prop)

Arguments

zi

vector of observations

lgi

vector of indices

P

number of class

mvec

vector of means for each class

wk

temporary vector for calculations

svec

vector of standard deviations for each class

prop

mixture vector