27 #include <MemoryX/interface/core/FusionMethods.h>
39 virtual public GaussianMixtureAssociationMethodBase
46 threshold(threshold), gmmDistance(gmmDistance)
52 this->threshold = threshold;
70 gmDistr->addComponent(newComp);
73 float minDist = threshold + 100.;
76 for (
int i = 0; i < gmDistr->size() - 1; ++i)
78 float curDist = gmmDistance->getDistance(gmDistr->getComponent(i), newComp);
79 std::cout <<
"Cur dist: " << curDist << std::endl;
81 if (curDist < minDist && curDist < threshold)
88 std::cout <<
"Min dist: " << minDist <<
" , threshold: " << threshold << std::endl;