private void iterations ( ) { int iterationCount = 0 ; while ( ( clusteringStrategy . getTerminationCondition ( ) != null && ! clusteringStrategy . getTerminationCondition ( ) . isSatisfied ( iterationHistory ) ) || iterationHistory . getMostRecentIterationInfo ( ) . isStrategyApplied ( ) ) { currentIteration ++ ; removePoints ( ) ; classifyPoints ( ) ; applyClusteringStrategy ( ) ; log . trace ( "Completed clustering iteration {}" , ++ iterationCount ) ; } }
Run clustering iterations until a termination condition is hit . This is done by first classifying all points and then updating cluster centers based on those classified points