public double optimalCwa ( ) { double acc = 0 ; for ( int recall = 1 ; recall <= numSamples ( ) ; recall ++ ) { acc += precision ( recall ) / ( double ) recall ; } return acc / numSamples ( ) ; }
optimal confidence weighted accuracy assuming for each recall we can fit an optimal monotonic function