Exemplo n.º 1
0
        public MZSpectrum GetAveragedSpectrum(int firstSpectrumNumber, int lastSpectrumNumber, string scanFilter = "", IntensityCutoffType type = IntensityCutoffType.None, int intensityCutoff = 0)
        {
            object labels = null;
            object flags = null;
            double peakWidth = 0;
            int    arraySize = 0;
            int    c, d, e, f;

            c = d = e = f = 0;
            _rawConnection.GetAverageMassList(ref firstSpectrumNumber, ref lastSpectrumNumber, ref c, ref d, ref e, ref f, scanFilter, (int)type, intensityCutoff, 0, 0, ref peakWidth, ref labels, ref flags, ref arraySize);
            double[,] spectrum = (double[, ])labels;
            return(new MZSpectrum(spectrum, arraySize));
        }