Changeset 12086 for branches/SymbolicExpressionTreeDiversityAnalyzers/HeuristicLab.Problems.DataAnalysis.Symbolic
- Timestamp:
- 02/26/15 15:33:40 (10 years ago)
- Location:
- branches/SymbolicExpressionTreeDiversityAnalyzers/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SymbolicExpressionTreeDiversityAnalyzers/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Analyzers/SymbolicDataAnalysisBottomUpDiversityAnalyzer.cs
r12075 r12086 42 42 } 43 43 44 public SymbolicDataAnalysisBottomUpDiversityAnalyzer( 45 IEnumerable<ISingleObjectiveSolutionSimilarityCalculator> validSimilarityCalculators) 44 public SymbolicDataAnalysisBottomUpDiversityAnalyzer(IEnumerable<ISolutionSimilarityCalculator> validSimilarityCalculators) 46 45 : base(validSimilarityCalculators) { 47 46 UpdateCounterParameter.ActualName = "GenotypicDiversityAnalyzerUpdateCounter"; -
branches/SymbolicExpressionTreeDiversityAnalyzers/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreeBottomUpSimilarityCalculator.cs
r12049 r12086 34 34 [StorableClass] 35 35 [Item("SymbolicExpressionTreeBottomUpSimilarityCalculator", "A similarity calculator which uses the tree bottom-up distance as a similarity metric.")] 36 public class SymbolicExpressionTreeBottomUpSimilarityCalculator : S ingleObjectiveSolutionSimilarityCalculator {36 public class SymbolicExpressionTreeBottomUpSimilarityCalculator : SolutionSimilarityCalculator { 37 37 private readonly HashSet<string> commutativeSymbols = new HashSet<string> { "Addition", "Multiplication", "Average", "And", "Or", "Xor" }; 38 38 public SymbolicExpressionTreeBottomUpSimilarityCalculator() { } 39 40 protected override bool IsCommutative { get { return true; } } 39 41 40 42 [StorableConstructor] -
branches/SymbolicExpressionTreeDiversityAnalyzers/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreeMaxCommonSubtreeSimilarityCalculator.cs
r12028 r12086 30 30 [StorableClass] 31 31 [Item("SymbolicExpressionTreeMaxCommonSubtreeSimilarityCalculator", "A similarity calculator based on the size of the maximum common subtree between two trees")] 32 public class SymbolicExpressionTreeMaxCommonSubtreeSimilarityCalculator : S ingleObjectiveSolutionSimilarityCalculator {32 public class SymbolicExpressionTreeMaxCommonSubtreeSimilarityCalculator : SolutionSimilarityCalculator { 33 33 [Storable] 34 34 private readonly SymbolicExpressionTreeNodeEqualityComparer comparer; … … 42 42 set { comparer.MatchConstantValues = value; } 43 43 } 44 45 protected override bool IsCommutative { get { return true; } } 44 46 45 47 [StorableConstructor] … … 85 87 } 86 88 89 87 90 public static double MaxCommonSubtreeSimilarity(ISymbolicExpressionTree a, ISymbolicExpressionTree b, ISymbolicExpressionTreeNodeSimilarityComparer comparer) { 88 91 int max = 0; -
branches/SymbolicExpressionTreeDiversityAnalyzers/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreePhenotypicSimilarityCalculator.cs
r12068 r12086 31 31 [Item("SymbolicExpressionTreePhenotypicSimilarityCalculator", "An operator that calculates the similarity betweeon two trees based on the correlation of their outputs.")] 32 32 [StorableClass] 33 public class SymbolicExpressionTreePhenotypicSimilarityCalculator : S ingleObjectiveSolutionSimilarityCalculator {33 public class SymbolicExpressionTreePhenotypicSimilarityCalculator : SolutionSimilarityCalculator { 34 34 [Storable] 35 35 public IDataAnalysisProblemData ProblemData { get; set; } 36 36 [Storable] 37 37 public ISymbolicDataAnalysisExpressionTreeInterpreter Interpreter { get; set; } 38 39 protected override bool IsCommutative { get { return true; } } 38 40 39 41 [StorableConstructor] … … 50 52 } 51 53 52 public SymbolicExpressionTreePhenotypicSimilarityCalculator() { 53 } 54 public SymbolicExpressionTreePhenotypicSimilarityCalculator() { } 54 55 55 56 public double CalculateSimilarity(ISymbolicExpressionTree t1, ISymbolicExpressionTree t2) {
Note: See TracChangeset
for help on using the changeset viewer.