HVQ | Write local functions for getCentroid and getOptimalCentroids
Closed this issue · 0 comments
shubhra2503 commented
hvq function calls getCentroid and getOptimalCentroid .
Distance and error functions were defined in HVQ to avoid redundancy and save time as these functions are called inside the nested loop.
These functions are now written inside getCentroid and getOptimalCentroid to make them independent.