public static double fBeta ( double beta , double precision , double recall ) { if ( precision == 0.0 || recall == 0.0 ) return 0 ; double numerator = ( 1 + beta * beta ) * precision * recall ; double denominator = beta * beta * precision + recall ; return numerator / denominator ; }
Calculate the F - beta value from precision and recall