public void Add(int scanInd, int peakIndex, Ms1CentroidList peakList, byte massRang, double intensityNorm) { centerMz.Add(peakList.CenterMass(peakIndex)); minMz.Add(peakList.MinMass(peakIndex)); maxMz.Add(peakList.MaxMass(peakIndex)); origIntensity.Add((float)(intensityNorm * peakList.GetIntensity(peakIndex))); scanIndex.Add(scanInd); massRange.Add(massRang); peakList.SetPeak(this, peakIndex); }
public Ms1CentroidList Extract(int[] indices) { Ms1CentroidList result = new Ms1CentroidList(); result.peakCenterMass = ArrayUtil.SubArray(peakCenterMass, indices); result.peakMinMass = ArrayUtil.SubArray(peakMinMass, indices); result.peakMaxMass = ArrayUtil.SubArray(peakMaxMass, indices); result.peakIntensity = ArrayUtil.SubArray(peakIntensity, indices); result.peaks = ArrayUtil.SubArray(peaks, indices); return(result); }