45 float d11 = isdDistance->calcSelfLikeness(gmm);
46 const int GMM_SIZE = gmm->size();
48 for (
int i = 0; i < GMM_SIZE - 1; ++i)
49 for (
int j = i + 1; j < GMM_SIZE; ++j)
52 GaussianMixtureComponent c1 = reducedGMM->getComponent(i);
53 GaussianMixtureComponent c2 = reducedGMM->getComponent(j);
55 const float cost = isdDistance->getDistance(gmm, reducedGMM, d11);
56 const int index = i * GMM_SIZE + j;
58 reducedGMM->setComponent(i, c1);
59 reducedGMM->addComponent(c2);