Changeset 18140 for branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreeBottomUpSimilarityCalculator.cs
- Timestamp:
- 12/16/21 10:17:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreeBottomUpSimilarityCalculator.cs
r18114 r18140 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)
Note: See TracChangeset
for help on using the changeset viewer.