Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/16/21 10:23:29 (3 years ago)
Author:
chaider
Message:

#3140 merged branch into trunk

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/HeuristicLab.Problems.DataAnalysis.Symbolic

  • trunk/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreeBottomUpSimilarityCalculator.cs

    r18132 r18141  
    4141    protected override bool IsCommutative { get { return true; } }
    4242
    43     public bool MatchParameterValues { get; set; }
     43    public bool MatchNumericValues { get; set; }
    4444    public bool MatchVariableWeights { get; set; }
    4545
     
    7474
    7575    public static NodeMap ComputeBottomUpMapping(ISymbolicExpressionTreeNode n1, ISymbolicExpressionTreeNode n2, bool strict = false) {
    76       var calculator = new SymbolicExpressionTreeBottomUpSimilarityCalculator { MatchParameterValues = strict, MatchVariableWeights = strict };
     76      var calculator = new SymbolicExpressionTreeBottomUpSimilarityCalculator { MatchNumericValues = strict, MatchVariableWeights = strict };
    7777      return calculator.ComputeBottomUpMapping(n1, n2);
    7878    }
     
    211211
    212212      if (node is INumericTreeNode numNode)
    213         return MatchParameterValues ? numNode.Value.ToString(CultureInfo.InvariantCulture) : "Numeric";
     213        return MatchNumericValues ? numNode.Value.ToString(CultureInfo.InvariantCulture) : "Numeric";
    214214
    215215      if (node is VariableTreeNode variable)
  • trunk/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreeNodeEqualityComparer.cs

    r18132 r18141  
    3333    protected SymbolicExpressionTreeNodeEqualityComparer(SymbolicExpressionTreeNodeEqualityComparer original, Cloner cloner)
    3434      : base(original, cloner) {
    35       matchParameterValues = original.matchParameterValues;
     35      matchNumericValues = original.matchNumericValues;
    3636      matchVariableNames = original.matchVariableNames;
    3737      matchVariableWeights = original.matchVariableWeights;
     
    4141    // more flexible matching criteria
    4242    [Storable]
    43     private bool matchParameterValues;
     43    private bool matchNumericValues;
    4444    public bool MatchParameterValues {
    45       get { return matchParameterValues; }
    46       set { matchParameterValues = value; }
     45      get { return matchNumericValues; }
     46      set { matchNumericValues = value; }
    4747    }
    4848
     
    6666
    6767    public SymbolicExpressionTreeNodeEqualityComparer() {
    68       matchParameterValues = true;
     68      matchNumericValues = true;
    6969      matchVariableNames = true;
    7070      matchVariableWeights = true;
Note: See TracChangeset for help on using the changeset viewer.