Changeset 10017 for branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3/LinearLeastSquaresFitting.cs
- Timestamp:
- 10/02/13 13:48:55 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3/LinearLeastSquaresFitting.cs
r9713 r10017 39 39 int n = y.Count(); 40 40 double sy = y.Sum(); 41 double sx = ((n - 1) * n) / 2 ;41 double sx = ((n - 1) * n) / 2.0; 42 42 double avgy = sy / n; 43 43 double avgx = sx / n;
Note: See TracChangeset
for help on using the changeset viewer.