Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/02/18 13:14:16 (6 years ago)
Author:
rhanghof
Message:

#2913:

  • Added the support for importing different Matlab datatypes.
  • Added some classes and changed the import dialog for importing double arrays.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2913_MatlabScriptProblemInstanceProvider/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Matlab/Api/Types/MLTimeseries.cs

    r15919 r15926  
    33using System.Linq;
    44using System.Text;
     5using System.Threading;
    56using System.Threading.Tasks;
    67
     
    2425    /// </summary>
    2526    /// <param name="timeseries"></param>
    26     public MLTimeseries(IEnumerable<MLTimeseries> timeseries) : this() {
     27    public MLTimeseries(IEnumerable<MLTimeseries> timeseries, CancellationToken token) : this() {
    2728      var dataHeaders = new List<string>();
    2829      var times = new SortedSet<double>(); // The time values have to be unique and sorted.
     
    6465
    6566          foreach (var v in vs) {
     67            if (token.IsCancellationRequested) {
     68              return;
     69            }
    6670            values[idx++] = v;
    6771          }
Note: See TracChangeset for help on using the changeset viewer.