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