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