Changeset 11889
- Timestamp:
- 02/04/15 15:40:40 (10 years ago)
- Location:
- branches/HeuristicLab.BottomUpTreeDistance/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BottomUpTreeDistance/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Matching/SymbolicExpressionTreeNodeSimilarityComparer.cs
r10563 r11889 1 using HeuristicLab.Common; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 22 using HeuristicLab.Common; 2 23 using HeuristicLab.Core; 3 24 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; -
branches/HeuristicLab.BottomUpTreeDistance/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SimilarityCalculators/BottomUpSimilarityCalculator.cs
r11487 r11889 43 43 protected BottomUpSimilarityCalculator(BottomUpSimilarityCalculator original, Cloner cloner) 44 44 : base(original, cloner) { 45 MatchVariableWeights = original.MatchVariableWeights; 46 MatchConstantValues = original.MatchConstantValues; 45 47 } 46 48 -
branches/HeuristicLab.BottomUpTreeDistance/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SimilarityCalculators/MaxCommonSubtreeSimilarityCalculator.cs
r11888 r11889 33 33 [Storable] 34 34 private readonly SymbolicExpressionTreeNodeSimilarityComparer comparer; 35 public bool MatchVariableNames {36 get { return comparer.MatchVariableNames; }37 set { comparer.MatchVariableNames = value; }38 }39 40 35 public bool MatchVariableWeights { 41 36 get { return comparer.MatchVariableWeights; } … … 57 52 protected MaxCommonSubtreeSimilarityCalculator(MaxCommonSubtreeSimilarityCalculator original, Cloner cloner) 58 53 : base(original, cloner) { 54 comparer = cloner.Clone(original.comparer); 59 55 } 60 56 … … 67 63 } 68 64 69 public MaxCommonSubtreeSimilarityCalculator(bool matchVariable Names, bool matchVariableWeights, bool matchConstantValues) {65 public MaxCommonSubtreeSimilarityCalculator(bool matchVariableWeights, bool matchConstantValues) { 70 66 comparer = new SymbolicExpressionTreeNodeSimilarityComparer { 71 67 MatchConstantValues = matchConstantValues, 72 MatchVariableNames = matchVariableNames,68 MatchVariableNames = true, 73 69 MatchVariableWeights = matchVariableWeights 74 70 };
Note: See TracChangeset
for help on using the changeset viewer.