Changeset 10169
- Timestamp:
- 11/27/13 17:19:47 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/PreprocessingDataStatisticInfo.cs
r10167 r10169 89 89 90 90 public double GetStandardDeviation(int columnIndex) { 91 throw new System.NotImplementedException(); 91 double stdDev = double.NaN; 92 if (preprocessingData.IsType<double>(columnIndex)) { 93 double avg = GetAverage(columnIndex); 94 stdDev = Math.Sqrt(preprocessingData.GetValues<double>(columnIndex).Sum(x => (x - avg) * (x - avg)) / (preprocessingData.Rows - 1)); 95 } 96 return stdDev; 92 97 } 93 98
Note: See TracChangeset
for help on using the changeset viewer.