コード例 #1
0
        public static double ComputeSimilarity(ISymbolicExpressionTreeNode t1, ISymbolicExpressionTreeNode t2, bool simplify = false, bool strict = false)
        {
            var lh = t1.Hash(simplify, strict);
            var rh = t2.Hash(simplify, strict);

            Array.Sort(lh);
            Array.Sort(rh);

            return(ComputeSimilarity(lh, rh));
        }
コード例 #2
0
 public static ulong ComputeHash(this ISymbolicExpressionTreeNode treeNode, bool simplify = false, bool strict = false)
 {
     return(treeNode.Hash(simplify, strict).Last());
 }