Ejemplo n.º 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;
        }
Ejemplo n.º 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);
        }