/src/main/java/net/finmath/marketdata/model/curves/locallinearregression/CurveEstimation.java
shiftedKernelVector.put( r+1,kernelValues.put( r) ) ;
shiftedKernelVector.put ( r+1,kernelValues.get ( r ) ) ;
final DoubleMatrix oneZeroVector= new DoubleMatrix(partition.getLength()); DoubleMatrix kernelSum= new DoubleMatrix(partition.getLength()); final DoubleMatrix shiftedKernelVector= new DoubleMatrix(partition.getLength()); for(int r=0;r<partition.getLength()-1;r++){ oneZeroVector.put(r, 1); kernelValues.put( r,kernel.density((partition.getIntervalReferencePoint(r)-independentValues[i])/bandwidth)); <extra_id_0> kernelSum=kernelSum.add(oneZeroVector.mmul(kernelValues.get(r))); } R=R.add(shiftedPartition.neg().add(independentValues[i]).mul(shiftedKernelVector) .add(partitionIncrements.mul(kernelSum)).mul(dependentValues[i])); M1_1=M1_1.add( kernelSum.get(0)); MFirstCol=MFirstCol.add(