- Timestamp:
- 10/02/16 11:34:27 (8 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 14300
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Views merged: 14300
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Views/3.4/FeatureCorrelation/TimeframeFeatureCorrelationCalculator.cs
r14005 r14318 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.