- Timestamp:
- 12/16/21 14:54:09 (3 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/3140_NumberSymbol merged: 18144-18145,18147
- Property svn:mergeinfo changed
-
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic
- Property svn:mergeinfo changed
/branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic merged: 18144-18145,18147
- Property svn:mergeinfo changed
-
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreeMaxCommonSubtreeSimilarityCalculator.cs
r18132 r18148 39 39 40 40 public bool MatchParameterValues { 41 get { return comparer.Match ParameterValues; }42 set { comparer.Match ParameterValues = value; }41 get { return comparer.MatchNumericValues; } 42 set { comparer.MatchNumericValues = value; } 43 43 } 44 44 … … 59 59 public SymbolicExpressionTreeMaxCommonSubtreeSimilarityCalculator() { 60 60 comparer = new SymbolicExpressionTreeNodeEqualityComparer { 61 Match ParameterValues = true,61 MatchNumericValues = true, 62 62 MatchVariableNames = true, 63 63 MatchVariableWeights = true … … 67 67 public SymbolicExpressionTreeMaxCommonSubtreeSimilarityCalculator(bool matchVariableWeights, bool matchParameterValues) { 68 68 comparer = new SymbolicExpressionTreeNodeEqualityComparer { 69 Match ParameterValues = matchParameterValues,69 MatchNumericValues = matchParameterValues, 70 70 MatchVariableNames = true, 71 71 MatchVariableWeights = matchVariableWeights -
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreeNodeEqualityComparer.cs
r18141 r18148 42 42 [Storable] 43 43 private bool matchNumericValues; 44 public bool Match ParameterValues {44 public bool MatchNumericValues { 45 45 get { return matchNumericValues; } 46 46 set { matchNumericValues = value; } … … 90 90 var cb = b as INumericTreeNode; 91 91 if (cb == null) return false; 92 return (!Match ParameterValues || ca.Value.Equals(cb.Value));92 return (!MatchNumericValues || ca.Value.Equals(cb.Value)); 93 93 } 94 94 return false;
Note: See TracChangeset
for help on using the changeset viewer.