/src/main/java/net/finmath/montecarlo/conditionalexpectation/LinearRegression.java
final double a = basisFunctions[8].squared( ).getAverage( ) ;
final double a = basisFunctions[0].squared ( ) .getAverage ( ) ;
return new double[] { }; } else if(basisFunctions.length == 1) { return new double[] { value.mult(basisFunctions[0]).getAverage() / basisFunctions[0].squared().getAverage() }; } else if(basisFunctions.length == 2) { <extra_id_0> final double b = basisFunctions[0].mult(basisFunctions[1]).average().squared().doubleValue(); final double c = b; final double d = basisFunctions[1].squared().getAverage(); final double determinant = (a * d - b * c); if(determinant != 0) { final double x = value.mult(basisFunctions[0]).getAverage();