Changeset 7886 for branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/TimeSeriesPrognosis
- Timestamp:
- 05/24/12 10:38:14 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/TimeSeriesPrognosis/TimeSeriesPrognosisProblemData.cs
r7843 r7886 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Globalization;25 using System.IO;26 24 using System.Linq; 27 25 using HeuristicLab.Common; … … 30 28 using HeuristicLab.Parameters; 31 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 32 using HeuristicLab.Problems.Instances;33 30 34 31 namespace HeuristicLab.Problems.DataAnalysis { … … 1616 1613 OnChanged(); 1617 1614 } 1618 1619 #region Import from file1620 public static TimeSeriesPrognosisProblemData ImportFromFile(string fileName) {1621 TableFileParser csvFileParser = new TableFileParser();1622 csvFileParser.Parse(fileName, NumberFormatInfo.InvariantInfo, DateTimeFormatInfo.InvariantInfo, ',');1623 1624 Dataset dataset = new Dataset(csvFileParser.VariableNames, csvFileParser.Values);1625 dataset.Name = Path.GetFileName(fileName);1626 1627 TimeSeriesPrognosisProblemData problemData = new TimeSeriesPrognosisProblemData(dataset, dataset.DoubleVariables, dataset.DoubleVariables.Take(1));1628 problemData.Name = "Data imported from " + Path.GetFileName(fileName);1629 return problemData;1630 }1631 #endregion1632 1615 } 1633 1616 }
Note: See TracChangeset
for help on using the changeset viewer.