public void AddPoints(int scanIndex, double time, List <ChromatogramPoint> points) { if (ScanIndexes.Count > 0) { Debug.Assert(scanIndex > ScanIndexes[ScanIndexes.Count - 1]); Debug.Assert(time >= Times[Times.Count - 1]); } ScanIndexes.Add(scanIndex); Times.Add(time); for (int i = 0; i < Chromatograms.Count; i++) { var chromatogram = Chromatograms[i]; chromatogram.Points.Add(points[i]); } }
public void AddPoints(int scanIndex, double time, List <MsDataFileUtil.ChromatogramPoint> points) { if (ScanIndexes.Count > 0) { Debug.Assert(scanIndex > ScanIndexes[ScanIndexes.Count - 1]); Debug.Assert(time >= Times[Times.Count - 1]); } ScanIndexes.Add(scanIndex); Times.Add(time); for (int i = 0; i < Chromatograms.Count; i++) { var chromatogram = Chromatograms[i]; var point = points[i]; chromatogram.Intensities.Add((float)point.Intensity); chromatogram.PeakMzs.Add((float)point.PeakMz); } }