public int precision ( int recall ) { int optimum = 0 ; for ( int right = 0 ; right <= recall ; right ++ ) { int candidate = numpositive [ right ] + numnegative [ recall - right ] ; if ( candidate > optimum ) { optimum = candidate ; } } return optimum ; }
what is the best precision at the given recall