/src/main/java/net/finmath/montecarlo/RandomVariableFromFloatArray.java
} histogramValues[intervalIndex] = sampleCount;
histogramValues[intervalIndex] = sampleCount; }
while (sampleIndex < realizationsSorted.length && realizationsSorted[sampleIndex] <= intervalPoints[intervalIndex]) { sampleIndex++; sampleCount++; } <extra_id_0> histogramValues[intervalPoints.length] = realizationsSorted.length-sampleIndex; if(realizationsSorted.length > 0) { for(int i=0; i<histogramValues.length; i++) { histogramValues[i] /= realizationsSorted.length; } }