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