returns a relevance score between a term and a document based on a corpus . concode_field_sep double bAnchor concode_elem_sep double b concode_elem_sep double bBody concode_elem_sep double wBody concode_elem_sep double k1 concode_elem_sep double bTitle concode_elem_sep double delta concode_elem_sep double wTitle concode_elem_sep double wAnchor concode_elem_sep double kf concode_field_sep double rank concode_elem_sep double rank
double function ( double arg0 , long arg1 , long arg2 ) { if ( arg0 <= 0 ) return 0.0 ; double loc0 = ( k1 + 1 ) * arg0 / ( arg0 + k1 ) ; double loc1 = Math . log ( ( arg1 - arg2 + 0.5 ) / ( arg2 + 0.5 ) ) ; return ( loc0 + delta ) * loc1 ; }