if the new cost is better than old , return 1.0 . otherwise , return a double that increases as the two costs are closer to each other . concode_field_sep PlaceHolder placeHolder concode_field_sep MovAvgModel minimize concode_elem_sep double cost
double function ( double arg0 , double arg1 , double arg2 ) { return arg1 < arg0 ? 1.0 : Math . exp ( - ( arg1 - arg0 ) / arg2 ) ; }