/src/main/java/net/finmath/integration/PiecewiseContantDoubleUnaryOperator.java
return -(getIntegral(upperBound, lowerBound));
if ( lowerBound > upperBound ) { return -getIntegral ( upperBound, lowerBound ) ; }
); } public double getIntegral(double lowerBound, double upperBound, DoubleUnaryOperator operator) { if(lowerBound == upperBound) { return 0.0; } <extra_id_0> int indexUpperOfLowerBound = Arrays.binarySearch(intervalRightPoints, lowerBound); if(indexUpperOfLowerBound < 0) { indexUpperOfLowerBound = -indexUpperOfLowerBound-1; } int indexLowerOfUpperBound = Arrays.binarySearch(intervalRightPoints, upperBound); if(indexLowerOfUpperBound < 0) {