static HeapDoublesSketch newInstance(int k){
  HeapDoublesSketch hqs=new HeapDoublesSketch(k);
  int bufAlloc=Math.min(Util.MIN_BASE_BUF_SIZE,2 * k);
  hqs.n_=0;
  hqs.combinedBufferItemCapacity_=bufAlloc;
  hqs.combinedBuffer_=new double[bufAlloc];
  hqs.baseBufferCount_=0;
  hqs.bitPattern_=0;
  hqs.minValue_=Double.POSITIVE_INFINITY;
  hqs.maxValue_=Double.NEGATIVE_INFINITY;
  return hqs;
}

static HeapDoublesSketch newInstance ( int k ) { HeapDoublesSketch hqs = new HeapDoublesSketch ( k ) ; int bufAlloc = Math . min ( Util . MIN_BASE_BUF_SIZE , 2 * k ) ; hqs . n_ = 0 ; hqs . combinedBufferItemCapacity_ = bufAlloc ; hqs . combinedBuffer_ = new double [ bufAlloc ] ; hqs . baseBufferCount_ = 0 ; hqs . bitPattern_ = 0 ; hqs . minValue_ = Double . POSITIVE_INFINITY ; hqs . maxValue_ = Double . NEGATIVE_INFINITY ; return hqs ; }
obtains a new instance of a doublessketch .
