Changeset 15926 for branches/2913_MatlabScriptProblemInstanceProvider/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Matlab/Api/Types/MLTimeseries.cs
- Timestamp:
- 05/02/18 13:14:16 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2913_MatlabScriptProblemInstanceProvider/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Matlab/Api/Types/MLTimeseries.cs
r15919 r15926 3 3 using System.Linq; 4 4 using System.Text; 5 using System.Threading; 5 6 using System.Threading.Tasks; 6 7 … … 24 25 /// </summary> 25 26 /// <param name="timeseries"></param> 26 public MLTimeseries(IEnumerable<MLTimeseries> timeseries ) : this() {27 public MLTimeseries(IEnumerable<MLTimeseries> timeseries, CancellationToken token) : this() { 27 28 var dataHeaders = new List<string>(); 28 29 var times = new SortedSet<double>(); // The time values have to be unique and sorted. … … 64 65 65 66 foreach (var v in vs) { 67 if (token.IsCancellationRequested) { 68 return; 69 } 66 70 values[idx++] = v; 67 71 }
Note: See TracChangeset
for help on using the changeset viewer.