void function ( int arg0 ) { int loc0 = ntups ; int loc1 = ( int ) ( ( max - min ) / bins . length ) ; if ( loc1 == 0 ) loc1 ++ ; int loc2 = ( arg0 - min ) / loc1 ; if ( loc2 >= bins . length ) loc2 = bins . length - 1 ; int loc3 = bins [ loc2 ] ; bins [ loc2 ] ++ ; this . avgSelectivity += 2 * loc3 + 1 ; ntups = loc0 + 1 ; }
add a value to the set of values that you are keeping a histogram of . concode_field_sep int min concode_elem_sep int max concode_elem_sep double avgSelectivity concode_elem_sep int ntups concode_elem_sep int bins[] concode_field_sep double avgSelectivity concode_elem_sep double estimateSelectivity concode_elem_sep String toString