Changeset 15094 for trunk/sources/HeuristicLab.Problems.DataAnalysis
- Timestamp:
- 06/29/17 16:07:16 (8 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Dataset.cs
r15015 r15094 181 181 } 182 182 183 public IEnumerable<string> DateTimeVariables { 184 get { return variableValues.Where(p => p.Value is IList<DateTime>).Select(p => p.Key); } 185 } 186 183 187 public IEnumerable<double> GetDoubleValues(string variableName) { 184 188 return GetValues<double>(variableName); … … 215 219 return new ReadOnlyCollection<string>(values); 216 220 } 221 222 public DateTime GetDateTimeValue(string variableName, int row) { 223 var values = GetValues<DateTime>(variableName); 224 return values[row]; 225 } 226 public IEnumerable<DateTime> GetDateTimeValues(string variableName, IEnumerable<int> rows) { 227 return GetValues<DateTime>(variableName, rows); 228 } 229 public ReadOnlyCollection<DateTime> GetReadOnlyDateTimeValues(string variableName) { 230 var values = GetValues<DateTime>(variableName); 231 return new ReadOnlyCollection<DateTime>(values); 232 } 233 217 234 218 235 private IEnumerable<T> GetValues<T>(string variableName, IEnumerable<int> rows) { -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/IDataset.cs
r14826 r15094 31 31 IEnumerable<string> DoubleVariables { get; } 32 32 IEnumerable<string> StringVariables { get; } 33 IEnumerable<string> DateTimeVariables { get; } 33 34 34 35 bool VariableHasType<T>(string variableName); … … 44 45 ReadOnlyCollection<string> GetReadOnlyStringValues(string VariableName); 45 46 47 System.DateTime GetDateTimeValue(string variableName, int row); 46 48 IEnumerable<DateTime> GetDateTimeValues(string variableName); 49 IEnumerable<DateTime> GetDateTimeValues(string variableName, IEnumerable<int> rows); 50 ReadOnlyCollection<DateTime> GetReadOnlyDateTimeValues(string variableName); 47 51 } 48 52 }
Note: See TracChangeset
for help on using the changeset viewer.