Coon.Compass.DtaGenerator.DtaGenerator.CleanETD C# (CSharp) Méthode

CleanETD() public static méthode

public static CleanETD ( List rangesToRemove, double precursorMass, int precursorZ, double lowWindow, double highWindow ) : void
rangesToRemove List
precursorMass double
precursorZ int
lowWindow double
highWindow double
Résultat void
        public static void CleanETD(List<IRange<double>> rangesToRemove, double precursorMass, int precursorZ, double lowWindow, double highWindow)
        {
            int sign = Math.Sign(precursorZ);

            for (int z = sign; sign*z < sign*precursorZ; z += sign)
            {
                double lowMZ = Mass.MzFromMass(precursorMass - lowWindow, z);
                double highMZ = Mass.MzFromMass(precursorMass + highWindow, z);
                rangesToRemove.Add(new MzRange(lowMZ, highMZ));
            }
        }