static double getRelErr ( final boolean upperBound , final boolean oooFlag , final int lgK , final int stdDev ) { final int idx = ( ( lgK - 4 ) * 3 ) + ( stdDev - 1 ) ; final int sw = ( oooFlag ? 2 : 0 ) | ( upperBound ? 1 : 0 ) ; double f = 0 ; switch ( sw ) { case 0 : { //HIP, LB f = HIP_LB [ idx ] ; break ; } case 1 : { //HIP, UB f = HIP_UB [ idx ] ; break ; } case 2 : { //NON_HIP, LB f = NON_HIP_LB [ idx ] ; break ; } case 3 : { //NON_HIP, UB f = NON_HIP_UB [ idx ] ; break ; } } return f ; }
Return Relative Error for UB or LB for HIP or Non - HIP as a function of numStdDev .