Beispiel #1
0
 public static bool AreEqual(Peak a, Peak b)
 {
     if (a.mz == b.mz && a.intensity == b.intensity) // ignore "consecutiveNeutralLossIndex" since that measure is relative to a search
         if (IonSpectrum.AreEqual(a.spectrum, b.spectrum))
             return true;
     return false;
 }
Beispiel #2
0
        public PeakResultView(Peak p, double maxIntensityOfSpectrum, double RTWindow_start, double RTWindow_end)
        {
            this.p = p;

            this.maxIntensityOfSpectrum = maxIntensityOfSpectrum;
            this.RTWindow_start = RTWindow_start;
            this.RTWindow_end = RTWindow_end;
            this.consecutiveNeutralLossIndex = p.consecutiveNeutralLossIndex;
        }