- Timestamp:
- 12/16/21 10:23:29 (3 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/3140_NumberSymbol merged: 18140
- Property svn:mergeinfo changed
-
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic
- Property svn:mergeinfo changed
/branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic merged: 18140
- Property svn:mergeinfo changed
-
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreeBottomUpSimilarityCalculator.cs
r18132 r18141 41 41 protected override bool IsCommutative { get { return true; } } 42 42 43 public bool Match ParameterValues { get; set; }43 public bool MatchNumericValues { get; set; } 44 44 public bool MatchVariableWeights { get; set; } 45 45 … … 74 74 75 75 public static NodeMap ComputeBottomUpMapping(ISymbolicExpressionTreeNode n1, ISymbolicExpressionTreeNode n2, bool strict = false) { 76 var calculator = new SymbolicExpressionTreeBottomUpSimilarityCalculator { Match ParameterValues = strict, MatchVariableWeights = strict };76 var calculator = new SymbolicExpressionTreeBottomUpSimilarityCalculator { MatchNumericValues = strict, MatchVariableWeights = strict }; 77 77 return calculator.ComputeBottomUpMapping(n1, n2); 78 78 } … … 211 211 212 212 if (node is INumericTreeNode numNode) 213 return Match ParameterValues ? numNode.Value.ToString(CultureInfo.InvariantCulture) : "Numeric";213 return MatchNumericValues ? numNode.Value.ToString(CultureInfo.InvariantCulture) : "Numeric"; 214 214 215 215 if (node is VariableTreeNode variable) -
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreeNodeEqualityComparer.cs
r18132 r18141 33 33 protected SymbolicExpressionTreeNodeEqualityComparer(SymbolicExpressionTreeNodeEqualityComparer original, Cloner cloner) 34 34 : base(original, cloner) { 35 match ParameterValues = original.matchParameterValues;35 matchNumericValues = original.matchNumericValues; 36 36 matchVariableNames = original.matchVariableNames; 37 37 matchVariableWeights = original.matchVariableWeights; … … 41 41 // more flexible matching criteria 42 42 [Storable] 43 private bool match ParameterValues;43 private bool matchNumericValues; 44 44 public bool MatchParameterValues { 45 get { return match ParameterValues; }46 set { match ParameterValues = value; }45 get { return matchNumericValues; } 46 set { matchNumericValues = value; } 47 47 } 48 48 … … 66 66 67 67 public SymbolicExpressionTreeNodeEqualityComparer() { 68 match ParameterValues = true;68 matchNumericValues = true; 69 69 matchVariableNames = true; 70 70 matchVariableWeights = true;
Note: See TracChangeset
for help on using the changeset viewer.