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