/src/main/java/net/finmath/integration/PiecewiseContantDoubleUnaryOperator.java
return operator.applyAsDouble( intervalRightPoints[indexUpperOfLowerBound]) * ( upperBound-lowerBound) ;
return operator.applyAsDouble ( values[indexUpperOfLowerBound] ) * ( upperBound-lowerBound ) ;
int indexLowerOfUpperBound = Arrays.binarySearch(intervalRightPoints, upperBound); if(indexLowerOfUpperBound < 0) { indexLowerOfUpperBound = -indexLowerOfUpperBound-1; } indexLowerOfUpperBound--; if(indexLowerOfUpperBound < indexUpperOfLowerBound) { <extra_id_0> } else { double error = 0.0; double integral = operator.applyAsDouble(values[indexUpperOfLowerBound]) * (intervalRightPoints[indexUpperOfLowerBound]-lowerBound); for(int i=indexUpperOfLowerBound; i<indexLowerOfUpperBound; i++) { final double value = operator.applyAsDouble(values[i+1]) * (intervalRightPoints[i+1]-intervalRightPoints[i]) - error;