int function ( Instance arg0 ) { double loc0 = Integer . MAX_VALUE ; int loc1 = 0 ; for ( int loc2 = 0 ; loc2 < K ; loc2 ++ ) { double loc3 = metric . distance ( arg0 , centroids . arg0 ( loc2 ) ) ; if ( loc3 < loc0 ) { loc0 = loc3 ; loc1 = loc2 ; } } return loc1 ; }
classifies a given instance . concode_field_sep int[] assignments concode_elem_sep Metric metric concode_elem_sep Instances instances concode_elem_sep Filter filter concode_elem_sep Instances centroids concode_elem_sep Instances[] instanceses concode_elem_sep Initializer initializer concode_elem_sep ArrayList[] clusters concode_elem_sep int K concode_field_sep int numberOfClusters concode_elem_sep Enumeration listOptions concode_elem_sep void clusterCentroids concode_elem_sep Clusterer forName concode_elem_sep void setOptions concode_elem_sep boolean clusterInstances concode_elem_sep boolean clusterInstances concode_elem_sep Clusterer[] makeCopies concode_elem_sep void buildClusterer concode_elem_sep void buildClusterer concode_elem_sep double[] getAssignments concode_elem_sep String[] getOptions concode_elem_sep String evaluate