code: public void clear() {
  
          for(int i=1; i<=2*m+3; i++) {
              n[i] = i+1;
          }
  
          f[1] = 0F;
          f[2*m+3] = 1F;
  
          for(int i=1; i<=m; i++) {
              f[2*i+1] = quantiles[i-1];
          }
  
          for(int i=1; i<=m+1; i++) {
              f[2*i] = (f[2*i-1] + f[2*i+1])/2F;
          }
  
          for(int i=1; i<=2*m+3; i++) {
              d[i] = 1F + 2*(m+1)*f[i];
          }
          isInitializing = true;
          ni = 1;
  
      }
docs: clear existing samples