public void centerInstances ( Instances centers , int [ ] assignments , double pc ) throws Exception { int [ ] centList = new int [ centers . numInstances ( ) ] ; for ( int i = 0 ; i < centers . numInstances ( ) ; i ++ ) centList [ i ] = i ; determineAssignments ( m_Root , centers , centList , assignments , pc ) ; }
Assigns instances to centers using KDTree .