public static Dictionary <ISymbolicExpressionTreeNode, ISymbolicExpressionTreeNode> ComputeBottomUpMapping(ISymbolicExpressionTreeNode n1, ISymbolicExpressionTreeNode n2, bool strict = false)
        {
            var calculator = new SymbolicExpressionTreeBottomUpSimilarityCalculator {
                MatchConstantValues = strict, MatchVariableWeights = strict
            };

            return(calculator.ComputeBottomUpMapping(n1, n2));
        }
        public static double CalculateSimilarity(ISymbolicExpressionTreeNode n1, ISymbolicExpressionTreeNode n2, bool strict = false)
        {
            var calculator = new SymbolicExpressionTreeBottomUpSimilarityCalculator {
                MatchConstantValues = strict, MatchVariableWeights = strict
            };

            return(CalculateSimilarity(n1, n2, strict));
        }
 protected SymbolicExpressionTreeBottomUpSimilarityCalculator(SymbolicExpressionTreeBottomUpSimilarityCalculator original, Cloner cloner)
     : base(original, cloner)
 {
 }
 protected SymbolicExpressionTreeBottomUpSimilarityCalculator(SymbolicExpressionTreeBottomUpSimilarityCalculator original, Cloner cloner)
   : base(original, cloner) {
 }
Ejemplo n.º 5
0
 public SymbolicDataAnalysisBottomUpDiversityAnalyzer(SymbolicExpressionTreeBottomUpSimilarityCalculator similarityCalculator)
     : base(new[] { similarityCalculator })
 {
     DiversityResultName = "Genotypic Diversity";
     UpdateCounterParameter.ActualName = "GenotypicDiversityAnalyzerUpdateCounter";
 }
 public SymbolicDataAnalysisBottomUpDiversityAnalyzer(SymbolicExpressionTreeBottomUpSimilarityCalculator similarityCalculator)
   : base(new[] { similarityCalculator }) {
   DiversityResultName = "Genotypic Diversity";
   UpdateCounterParameter.ActualName = "GenotypicDiversityAnalyzerUpdateCounter";
 }