C# Class CSMSL.Chemistry.MassExtensions

Show file Open project: dbaileychess/CSMSL

Public Methods

Method Description
Compare ( this mass1, IMass mass2, double epsilon = MassEqualityEpsilon ) : int
MassEquals ( this mass1, IMass mass2, double epsilon = MassEqualityEpsilon ) : bool
MassEquals ( this mass1, double mass2, double epsilon = MassEqualityEpsilon ) : bool
ToMass ( this mz, int charge, int c13Isotope ) : double

Converts the object that has a m/z into a mass value based on the charge state

ToMz ( this mass, int charge, int c13Isotope ) : double

Converts the object that has a mass into a m/z value based on the charge state

Method Details

Compare() public static method

public static Compare ( this mass1, IMass mass2, double epsilon = MassEqualityEpsilon ) : int
mass1 this
mass2 IMass
epsilon double
return int

MassEquals() public static method

public static MassEquals ( this mass1, IMass mass2, double epsilon = MassEqualityEpsilon ) : bool
mass1 this
mass2 IMass
epsilon double
return bool

MassEquals() public static method

public static MassEquals ( this mass1, double mass2, double epsilon = MassEqualityEpsilon ) : bool
mass1 this
mass2 double
epsilon double
return bool

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

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