calculates the distortion calls : none called by : volume concode_field_sep Points pt[] concode_elem_sep Centroid centroids[] concode_elem_sep int codebook_size concode_elem_sep double SPLIT concode_elem_sep int dimension concode_elem_sep double MIN_DISTORTION concode_field_sep double getDistance concode_elem_sep int closestPoint concode_elem_sep void split concode_elem_sep void saveToFile concode_elem_sep int closestCentroidToPoint concode_elem_sep int closestCentroidToCentroid concode_elem_sep int[] quantize concode_elem_sep void initialize concode_elem_sep void showParameters concode_elem_sep void groupPtoC
double function ( Points arg0 [ ] ) { double loc0 = 0 ; for ( int loc1 = 0 ; loc1 < arg0 . length ; loc1 ++ ) { int loc2 = closestCentroidToPoint ( arg0 [ loc1 ] ) ; double loc3 = getDistance ( arg0 [ loc1 ] , centroids [ loc2 ] ) ; loc0 += loc3 ; } return loc0 ; }