public void Add(TracePoint tp) { double idx = Math.Floor(tp.MZ); if (Traces.ContainsKey(idx)) { Traces[idx].Points.Add(tp); } }
public void Add(TracePoint tp) { if (tp.Intensity > MaxI) { MaxI = tp.Intensity; if (tp.Charge > 0) { Chg = tp.Charge; } } N++; ISum += tp.Intensity; MZSum += tp.MZ * tp.Intensity; RT = tp.RT; }
public void Add(TracePoint tp) { }