Changeset 12055 for branches/SymbolicExpressionTreeDiversityAnalyzers/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreePhenotypicSimilarityCalculator.cs
- Timestamp:
- 02/23/15 15:29:05 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SymbolicExpressionTreeDiversityAnalyzers/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreePhenotypicSimilarityCalculator.cs
r12049 r12055 68 68 var leftValues = (DoubleArray)leftSolution.Variables["EstimatedValues"].Value; 69 69 var rightValues = (DoubleArray)rightSolution.Variables["EstimatedValues"].Value; 70 71 if (leftValues.Variance().IsAlmost(0) && rightValues.Variance().IsAlmost(0)) 72 return 1.0; 73 70 74 OnlineCalculatorError error; 71 75 var r2 = OnlinePearsonsRSquaredCalculator.Calculate(leftValues, rightValues, out error);
Note: See TracChangeset
for help on using the changeset viewer.