public static double falsePositiveRate ( long fpCount , long tnCount , double edgeCase ) { //Edge case if ( fpCount == 0 && tnCount == 0 ) { return edgeCase ; } return fpCount / ( double ) ( fpCount + tnCount ) ; }
Calculate the false positive rate from the false positive count and true negative count