public static CloseHuman GetInstance(int maxMismatches)
        {
            CloseHuman closeHuman = new CloseHuman();

            closeHuman.MaxMismatches = maxMismatches;
            return(closeHuman);
        }
 internal static IEnumerable <IHashableFeature> CreateFeatures(Pair <NEC, Hla> necAndHla)
 {
     CloseHumanTable();
     Debug.Assert(MaxMaxMismatches != int.MinValue); // real assert
     for (int maxMismatches = 0; maxMismatches <= MaxMaxMismatches; ++maxMismatches)
     {
         if (CloseHuman.IsCloseHuman(necAndHla, maxMismatches))
         {
             CloseHuman featureCloseHuman = CloseHuman.GetInstance(maxMismatches);
             yield return(featureCloseHuman);
         }
     }
 }
        public override bool Equals(object obj)
        {
            CloseHuman other = obj as CloseHuman;

            if (other == null)
            {
                return(false);
            }
            else
            {
                return(MaxMismatches == other.MaxMismatches);
            }
        }