コード例 #1
0
ファイル: MinutiaPairing.cs プロジェクト: mattBuarque/M-and-N
        public object Clone()
        {
            MinutiaPairing clone = new MinutiaPairing();

            clone.ProbeIndex     = (PairInfo[])ProbeIndex.Clone();
            clone.CandidateIndex = (PairInfo[])CandidateIndex.Clone();
            clone.PairList       = (PairInfo[])PairList.CloneItems();
            clone.PairCount      = PairCount;
            return(clone);
        }
コード例 #2
0
 public void SkipPaired(MinutiaPairing pairing)
 {
     while (Queue.Count > 0 && (pairing.IsProbePaired(Queue.Peek().Neighbor.Probe) ||
                                pairing.IsCandidatePaired(Queue.Peek().Neighbor.Candidate)))
     {
         EdgePair edge = Queue.Dequeue();
         if (pairing.IsProbePaired(edge.Neighbor.Probe) && pairing.GetByProbe(edge.Neighbor.Probe).Pair.Candidate == edge.Neighbor.Candidate)
         {
             pairing.AddSupportByProbe(edge.Reference.Probe);
             pairing.AddSupportByProbe(edge.Neighbor.Probe);
         }
     }
 }