in src/main/java/org/apache/datasketches/characterization/hll/HllConfidenceIntervalInverseProfile.java [140:158]
public void doTrial() {
for (int n = minSrcN; n <= maxSrcN; n++) { //srcN range: from 1300 to 17000
sketch.reset();
for (long u = 0; u < n; u++) { //update sketch with n uniques
sketch.update(++vIn);
}
final double rawEst = useComposite ? sketch.getCompositeEstimate() : sketch.getEstimate();
final int est = (int)Math.round(rawEst);
if (est >= minTgtEst && est <= maxTgtEst) { //est range
final int deltaEst = est - minTgtEst;
final EstimateStats q = estStatsArr[deltaEst];
if (q.estimate != est) {
throw new IllegalArgumentException("q.estimate: " + q.estimate + " != est: " + est);
}
q.update(n); //distribution of srcN values in the target est bin (row)
qNinTgtEstRange.update(n); //distribution of srcN values in the target estimate range
}
} // end scan of N
}