Changeset 2368 for trunk/sources/HeuristicLab.DataAnalysis
- Timestamp:
- 09/17/09 13:32:19 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DataAnalysis/3.2/Dataset.cs
r2367 r2368 308 308 return min; 309 309 } 310 311 public int CountMissingValues(string variableName) { 312 return CountMissingValues(this.GetVariableIndex(variableName)); 313 } 314 public int CountMissingValues(int column) { 315 return CountMissingValues(column, 0, Rows); 316 } 317 318 public int CountMissingValues(string variableName, int start, int end) { 319 return CountMissingValues(this.GetVariableIndex(variableName), start, end); 320 } 321 322 public int CountMissingValues(int column, int start, int end) { 323 int n = 0; 324 for (int i = start; i < end; i++) { 325 double val = GetValue(i, column); 326 if (double.IsNaN(val)) n++; 327 } 328 return n; 329 } 330 310 331 #endregion 311 332
Note: See TracChangeset
for help on using the changeset viewer.