/src/main/java/net/finmath/marketdata/model/curves/locallinearregression/Partition.java
return points.length;
} else if ( x>=points[points.length-1] ) { return points.length; }
){ this(points,0.5); } public int getIntervalNumber(final double x) { if (x<points[0]) { return 0; <extra_id_0> for(int i=0; i<points.length-2;i++) { if ( x< points[i+1]) { return i+1; } } return points.length-1;