CSMSL.Chemistry.MassExtensions.ToMz C# (CSharp) Method

ToMz() public static method

Converts the object that has a mass into a m/z value based on the charge state
public static ToMz ( this mass, int charge, int c13Isotope ) : double
mass this
charge int
c13Isotope int
return double
        public static double ToMz(this IMass mass, int charge, int c13Isotope = 0)
        {
            return Mass.MzFromMass(mass.MonoisotopicMass + c13Isotope*Constants.C13C12Difference, charge);
        }