Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/26/15 15:33:40 (9 years ago)
Author:
bburlacu
Message:

#2326: Moved phenotypic diversity analyzers one level up (since they can be applied to both single- and multiobjective problems). Added wiring in the multiobjective problems. Changed base class to SolutionSimilarityCalculator and adjusted analyzers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SymbolicExpressionTreeDiversityAnalyzers/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreePhenotypicSimilarityCalculator.cs

    r12068 r12086  
    3131  [Item("SymbolicExpressionTreePhenotypicSimilarityCalculator", "An operator that calculates the similarity betweeon two trees based on the correlation of their outputs.")]
    3232  [StorableClass]
    33   public class SymbolicExpressionTreePhenotypicSimilarityCalculator : SingleObjectiveSolutionSimilarityCalculator {
     33  public class SymbolicExpressionTreePhenotypicSimilarityCalculator : SolutionSimilarityCalculator {
    3434    [Storable]
    3535    public IDataAnalysisProblemData ProblemData { get; set; }
    3636    [Storable]
    3737    public ISymbolicDataAnalysisExpressionTreeInterpreter Interpreter { get; set; }
     38
     39    protected override bool IsCommutative { get { return true; } }
    3840
    3941    [StorableConstructor]
     
    5052    }
    5153
    52     public SymbolicExpressionTreePhenotypicSimilarityCalculator() {
    53     }
     54    public SymbolicExpressionTreePhenotypicSimilarityCalculator() { }
    5455
    5556    public double CalculateSimilarity(ISymbolicExpressionTree t1, ISymbolicExpressionTree t2) {
Note: See TracChangeset for help on using the changeset viewer.