Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/21/16 21:27:54 (8 years ago)
Author:
gkronber
Message:

#2675: fixed TimeframeFeatureCorrelationCalculator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/FeatureCorrelation/TimeframeFeatureCorrelationCalculator.cs

    r13938 r14300  
    7272      }
    7373
     74      var var1 = dataset.GetDoubleValues(variable, indices).ToArray();
     75
    7476      for (int i = 0; i < length; i++) {
    7577        for (int j = start; j <= frames; j++) {
     
    8082          }
    8183
    82           IEnumerable<double> var1 = dataset.GetDoubleValues(variable, indices);
    8384          IEnumerable<double> var2 = dataset.GetDoubleValues(doubleVariableNames[i], indices);
    8485
    85           var valuesInFrame = var1.Take(j);
    86           var help = var1.Skip(j).ToList();
    87           help.AddRange(valuesInFrame);
    88           var1 = help;
    89 
    9086          var error = OnlineCalculatorError.None;
    91           elements[i, j] = calc.Calculate(var1, var2, out error);
     87          elements[i, j] = calc.Calculate(var1.Skip(j), var2.Take(var1.Length-j), out error);
    9288
    9389          if (!error.Equals(OnlineCalculatorError.None)) {
Note: See TracChangeset for help on using the changeset viewer.