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