Commit acf49286 authored by BLANCHARD Pierre's avatar BLANCHARD Pierre

Access partitions in kcluster partitioner.

parent ebba3102
......@@ -207,6 +207,18 @@ public:
}
void getCentroidsIdx(const int inNbElements, int inCentroidsIdx[]) const{
/// Map partitions to 0.. nbElements
FAssertLF(inNbElements == nbElements);
// Copy partitions into in/output array
for(int idx = 0 ; idx < nbElements ; ++idx){
inCentroidsIdx[idx]=partitions[idx];
}
}
};
#endif // FCCLKCLUSTER_HPP
......
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