Changeset 12817 for trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/Linear/LinearRegression.cs
- Timestamp:
- 07/30/15 16:55:22 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/Linear/LinearRegression.cs
r12792 r12817 47 47 private LinearRegression(LinearRegression original, Cloner cloner) 48 48 : base(original, cloner) { 49 50 49 } 51 50 public LinearRegression() … … 78 77 throw new NotSupportedException("Linear regression does not support NaN or infinity values in the input dataset."); 79 78 80 alglib.linearmodel lm ;81 alglib.lrreport ar ;79 alglib.linearmodel lm = new alglib.linearmodel(); 80 alglib.lrreport ar = new alglib.lrreport(); 82 81 int nRows = inputMatrix.GetLength(0); 83 82 int nFeatures = inputMatrix.GetLength(1) - 1; 84 double[] coefficients ;83 double[] coefficients = new double[nFeatures + 1]; // last coefficient is for the constant 85 84 86 85 int retVal = 1;
Note: See TracChangeset
for help on using the changeset viewer.