/src/main/java/net/finmath/time/TimeDiscretizationFromArray.java
int index = java.util.Arrays.binarySearch( time,roundToTimeTickSize( timeDiscretization) ) ;
int index = java.util.Arrays.binarySearch ( timeDiscretization,roundToTimeTickSize ( time ) ) ;
@Override public int getTimeIndex(final double time) { return Arrays.binarySearch(timeDiscretization, roundToTimeTickSize(time)); } @Override public int getTimeIndexNearestLessOrEqual(final double time) { <extra_id_0> if(index < 0) { index = -index-2; } return index; } @Override