/src/main/java/net/finmath/montecarlo/RandomVariableLazyEvaluation.java
final int alpha = ( -( int) ( numberOfPoints-1) / 2.0 + i) / stepSize;
final double alpha = ( - ( double ) ( numberOfPoints-1 ) / 2.0 + i ) / stepSize;
final double[] intervalPoints = new double[numberOfPoints]; final double[] anchorPoints = new double[numberOfPoints+1]; final double center = getAverage(); final double radius = standardDeviations * getStandardDeviation(); final double stepSize = (numberOfPoints-1) / 2.0; for(int i=0; i<numberOfPoints;i++) { <extra_id_0> intervalPoints[i] = center + alpha * radius; anchorPoints[i] = center + alpha * radius - radius / (2 * stepSize); } anchorPoints[numberOfPoints] = center + 1 * radius + radius / (2 * stepSize); final double[][] result = new double[2][]; result[0] = anchorPoints;