@SuppressWarnings("unused") private static int guaranteedErrorEstimator(int nRows,int sampleSize,ReaderColumnSelection sampleRowsReader){
  HashMap<DblArray,Integer> valsCount=getValCounts(sampleRowsReader);
  int singltonValsCount=0;
  int otherValsCount=0;
  for (  Integer c : valsCount.values()) {
    if (c == 1)     singltonValsCount++;
 else     otherValsCount++;
  }
  return (int)Math.round(otherValsCount + singltonValsCount * Math.sqrt(((double)nRows) / sampleSize));
}

@ SuppressWarnings ( "unused" ) private static int guaranteedErrorEstimator ( int nRows , int sampleSize , ReaderColumnSelection sampleRowsReader ) { HashMap < DblArray , Integer > valsCount = getValCounts ( sampleRowsReader ) ; int singltonValsCount = 0 ; int otherValsCount = 0 ; for ( Integer c : valsCount . values ( ) ) { if ( c == 1 ) singltonValsCount ++ ; else otherValsCount ++ ; } return ( int ) Math . round ( otherValsCount + singltonValsCount * Math . sqrt ( ( ( double ) nRows ) / sampleSize ) ) ; }
m . charikar , s . chaudhuri , r . motwani , and v . r . narasayya , towards estimation error guarantees for distinct values , pods ' 00 .
