Changeset 14300 for trunk/sources
- Timestamp:
- 09/21/16 21:27:54 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/FeatureCorrelation/TimeframeFeatureCorrelationCalculator.cs
r13938 r14300 72 72 } 73 73 74 var var1 = dataset.GetDoubleValues(variable, indices).ToArray(); 75 74 76 for (int i = 0; i < length; i++) { 75 77 for (int j = start; j <= frames; j++) { … … 80 82 } 81 83 82 IEnumerable<double> var1 = dataset.GetDoubleValues(variable, indices);83 84 IEnumerable<double> var2 = dataset.GetDoubleValues(doubleVariableNames[i], indices); 84 85 85 var valuesInFrame = var1.Take(j);86 var help = var1.Skip(j).ToList();87 help.AddRange(valuesInFrame);88 var1 = help;89 90 86 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); 92 88 93 89 if (!error.Equals(OnlineCalculatorError.None)) {
Note: See TracChangeset
for help on using the changeset viewer.