public void Computing(BinaryString[] detectorSet, BinaryString sample)
 {
     for (int i = 0; i < detectorSet.Length; i++)
     {
         Detector_Aff temp = new Detector_Aff()
         {
             Detector = detectorSet[i], Sample = sample, Distance = MatchingMachine.GetHammingDis(detectorSet[i], sample)
         };
         result.Add(temp);
     }
 }
Пример #2
0
 private double GetHA(BinaryString item1, BinaryString item2)
 {
     return(MatchingMachine.GetHammingDis(item1, item2));
 }