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

ToMass() public static method

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