30 #include <MemoryX/interface/core/FusionMethods.h>
41 virtual public GaussianMixtureAssociationMethodBase
48 threshold(threshold), gmmDistance(gmmDistance)
55 this->threshold = threshold;
68 const GaussianMixtureComponent& newComp,
69 const ::Ice::Current& = Ice::emptyCurrent)
override
76 gmDistr->addComponent(newComp);
79 float minDist = threshold + 100.;
82 for (
int i = 0; i < gmDistr->size() - 1; ++i)
84 float curDist = gmmDistance->getDistance(gmDistr->getComponent(i), newComp);
85 std::cout <<
"Cur dist: " << curDist << std::endl;
87 if (curDist < minDist && curDist < threshold)
94 std::cout <<
"Min dist: " << minDist <<
" , threshold: " << threshold << std::endl;