private double allowableError(int rank){
  int size=samples.size();
  final double error=calculateError(rank,size);
  final double minError=size + 1;
  if (error < minError) {
    return error;
  }
  return minError;
}

private double allowableError ( int rank ) { int size = samples . size ( ) ; final double error = calculateError ( rank , size ) ; final double minError = size + 1 ; if ( error < minError ) { return error ; } return minError ; }
specifies the allowable error for this rank , depending on which quantiles are being targeted . < p > this is the f ( r_i , n ) function from the ckms paper . it ' s basically how wide the range of this rank can be .
