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; }
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); }