src/main/java/org/apache/datasketches/characterization/kll/KllDoublesSketchRankGaussianAccuracyProfile.java [180:205]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    for (int pp = 0; pp < numPlotPoints; pp++) {
      trueValues[pp] = round(fltValues[pp]);
      corrTrueValues[pp] = trueValues[pp] - trueValueCorrection;
    }

    //Do numTrials for all plot points
    for (int t = 0; t < numTrials; t++) {
      sk.reset();
      doTrial(sk, stream, trueValues, corrTrueValues, errQSkArr);
    }

    //at this point each of the errQSkArr sketches has a distribution of error from numTrials
    for (int pp = 0 ; pp < numPlotPoints; pp++) {
      final double v = trueValues[pp];
      final double tr = v / streamLength; //the true rank

      //for each of the numErrDistRanks distributions extract the sd quantiles
      final double[] errQ = errQSkArr[pp].getQuantiles(gRanks); //get error values at the Gaussian ranks

      //Plot the row. We ignore quantiles collected at 0 and 1.0.
      final double relPP = (double)(pp + 1) / numPlotPoints;
      job.printfData(fFmt, relPP, v, tr,
          errQ[0], errQ[1], errQ[2], errQ[3], errQ[4], errQ[5], errQ[6]);
      errQSkArr[pp].reset(); //reset the errQSkArr for next streamLength
    }
    job.println(LS + "Serialization Bytes: " + sk.getSerializedSizeBytes());
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/org/apache/datasketches/characterization/kll/KllFloatsSketchRankGaussianAccuracyProfile.java [187:212]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    for (int pp = 0; pp < numPlotPoints; pp++) {
      trueValues[pp] = round(fltValues[pp]);
      corrTrueValues[pp] = trueValues[pp] - trueValueCorrection;
    }

    //Do numTrials for all plot points
    for (int t = 0; t < numTrials; t++) {
      sk.reset();
      doTrial(sk, stream, trueValues, corrTrueValues, errQSkArr);
    }

    //at this point each of the errQSkArr sketches has a distribution of error from numTrials
    for (int pp = 0 ; pp < numPlotPoints; pp++) {
      final double v = trueValues[pp];
      final double tr = v / streamLength; //the true rank

      //for each of the numErrDistRanks distributions extract the sd quantiles
      final double[] errQ = errQSkArr[pp].getQuantiles(gRanks); //get error values at the Gaussian ranks

      //Plot the row. We ignore quantiles collected at 0 and 1.0.
      final double relPP = (double)(pp + 1) / numPlotPoints;
      job.printfData(fFmt, relPP, v, tr,
          errQ[0], errQ[1], errQ[2], errQ[3], errQ[4], errQ[5], errQ[6]);
      errQSkArr[pp].reset(); //reset the errQSkArr for next streamLength
    }
    job.println(LS + "Serialization Bytes: " + sk.getSerializedSizeBytes());
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



