Exemple #1
0
        public int NumFeatureMatches(MorphoFeatures other)
        {
            int nMatches = 0;
            foreach (var fPair in fSpec)
            {
                if (other.HasFeature(fPair.Key) && other.GetValue(fPair.Key).Equals(fPair.Value))
                    nMatches++;
            }

            return nMatches;
        }
Exemple #2
0
        public int NumFeatureMatches(MorphoFeatures other)
        {
            int nMatches = 0;

            foreach (var fPair in fSpec)
            {
                if (other.HasFeature(fPair.Key) && other.GetValue(fPair.Key).Equals(fPair.Value))
                {
                    nMatches++;
                }
            }

            return(nMatches);
        }