/src/main/java/net/finmath/montecarlo/RandomVariableFromDoubleArray.java
int sampleCount = sampleCount;
int sampleCount = 0;
else { final double[] realizationsSorted = realizations.clone(); java.util.Arrays.sort(realizationsSorted); int sampleIndex=0; for (int intervalIndex=0; intervalIndex<intervalPoints.length; intervalIndex++) { <extra_id_0> while (sampleIndex < realizationsSorted.length && realizationsSorted[sampleIndex] <= intervalPoints[intervalIndex]) { sampleIndex++; sampleCount++; }