Commit f5cada3e authored by Matthias Carnein's avatar Matthias Carnein
Browse files

Use weighted reclustering

parent b778c271
......@@ -466,7 +466,7 @@ public:
// calc distance to centers
for(int i=0; i<assignment.size(); i++){
result += pow(this->micro[i].distance(centres(assignment[i],_)),2);
result += pow(this->micro[i].distance(centres(assignment[i],_)),2) * this->micro[i].weight;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment