HeapArrayOfDoublesQuickSelectSketch(final int nomEntries,final int lgResizeFactor,final float samplingProbability,final int numValues,final long seed){
  super(numValues,seed);
  nomEntries_=ceilingPowerOf2(nomEntries);
  lgResizeFactor_=lgResizeFactor;
  samplingProbability_=samplingProbability;
  theta_=(long)(Long.MAX_VALUE * (double)samplingProbability);
  final int startingCapacity=1 << startingSubMultiple(Integer.numberOfTrailingZeros(ceilingPowerOf2(nomEntries) * 2),ResizeFactor.getRF(lgResizeFactor),MIN_LG_ARR_LONGS);
  keys_=new long[startingCapacity];
  values_=new double[startingCapacity * numValues];
  lgCurrentCapacity_=Integer.numberOfTrailingZeros(startingCapacity);
  setRebuildThreshold();
}

HeapArrayOfDoublesQuickSelectSketch ( final int nomEntries , final int lgResizeFactor , final float samplingProbability , final int numValues , final long seed ) { super ( numValues , seed ) ; nomEntries_ = ceilingPowerOf2 ( nomEntries ) ; lgResizeFactor_ = lgResizeFactor ; samplingProbability_ = samplingProbability ; theta_ = ( long ) ( Long . MAX_VALUE * ( double ) samplingProbability ) ; final int startingCapacity = 1 << startingSubMultiple ( Integer . numberOfTrailingZeros ( ceilingPowerOf2 ( nomEntries ) * 2 ) , ResizeFactor . getRF ( lgResizeFactor ) , MIN_LG_ARR_LONGS ) ; keys_ = new long [ startingCapacity ] ; values_ = new double [ startingCapacity * numValues ] ; lgCurrentCapacity_ = Integer . numberOfTrailingZeros ( startingCapacity ) ; setRebuildThreshold ( ) ; }
this is to create an instance of a quickselectsketch with custom resize factor and sampling probability
