Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Variables

OpenMS::Constants Namespace Reference
[Concept]

Mathematical and physical constants namespace. More...

Variables

const unsigned int DEFAULT_NUM_OF_INTERPOLATION_POINTS = 3
const double MASS_EPSILON = 1e-4f
const double MARR_WAVELET_CUTOFF = 4.f
const double PEPTIDE_MASS_RULE_FACTOR = 0.000507f
const double PEPTIDE_MASS_RULE_BOUND = 1. / PEPTIDE_MASS_RULE_FACTOR
const double PEPTIDE_MASS_RULE_THEO_PPM_BOUND = 200
const double IW_NEUTRON_MASS = 1.00866491578f
const double IW_HALF_NEUTRON_MASS = 0.5043325f
const double IW_QUARTER_NEUTRON_MASS = 0.252166228f
const double WAVELET_PERIODICITY = 6.229209734f
const double ONEOLOG2E = 0.6931471806f
const double IW_PROTON_MASS = 1.00727646688f
const double LAMBDA_L_0 = 0.120398590399013419f
const double LAMBDA_L_1 = 0.635926795694698589e-3f
const double CUT_LAMBDA_Q_0_A = 1.9498e+00f
const double CUT_LAMBDA_Q_0_B = 2.4244e-03f
const double CUT_LAMBDA_Q_0_C = -2.4183e-07f
const double CUT_LAMBDA_Q_1_A = 3.6870e+00f
const double CUT_LAMBDA_Q_1_B = 1.1561e-03f
const double CUT_LAMBDA_Q_1_C = -1.0329e-08f
const double CUT_LAMBDA_L_2_A = 5.7661e+00f
const double CUT_LAMBDA_L_2_B = 8.6301e-04f
const double CUT_LAMBDA_BREAK_0_1 = 2739.4f
const double CUT_LAMBDA_BREAK_1_2 = 1.4187e+04f
const int SHIFT23 = (1 << 23)
const double SHIFT23_00 = (1.0 / (1 << 23))
const double LOG_CONST = 0.346607f
const double POW_CONST = 0.33971f
const int CUDA_INIT_SUCCESS = 1
const int CUDA_INIT_FAIL = -1
const int CUDA_BLOCKS_PER_GRID_MAX = 65535
const int CUDA_BLOCK_SIZE_MAX = 256
const int CUDA_EXTENDED_BLOCK_SIZE_MAX = 2039
const int CUDA_TEXTURE_THREAD_LIMIT = 384
const int CUDA_ELEMENTS_SORT = 512
const int CUDA_THREADS_SORT = (CUDA_ELEMENTS_SORT >> 2)
const int CUDA_SORT_NUM = 0xFFFFFE00
const int CUDA_ELEMENTS_MERGE = 1024
const int CUDA_MERGE_NUM = 0xFFFFFC00
const int CUDA_THREADS_MERGE = (CUDA_ELEMENTS_MERGE >> 2)
const int CUDA_ELEMENTS_GL = 2
const int CUDA_THREADS_GL = 256
const int CUDA_MIN_SORT_SIZE = CUDA_ELEMENTS_SORT
const int TBB_NUM_OF_GPU_DEVICES = 2
Mathematical constants.

const double PI
 PI.
const double E
 Euler's number - base of the natural logarithm.
double EPSILON
Chemical/physical constants.

const double ELEMENTARY_CHARGE
const double e0
 Elementary charge (alias).
const double ELECTRON_MASS
const double ELECTRON_MASS_U
const double PROTON_MASS
const double PROTON_MASS_U
const double C13C12_MASSDIFF_U
const double NEUTRON_MASS
const double NEUTRON_MASS_U
const double AVOGADRO
const double NA
const double MOL
const double BOLTZMANN
const double k
const double PLANCK
const double h
const double GAS_CONSTANT
const double R
const double FARADAY
const double F
const double BOHR_RADIUS
const double a0
const double VACUUM_PERMITTIVITY
const double VACUUM_PERMEABILITY
const double SPEED_OF_LIGHT
const double c
const double GRAVITATIONAL_CONSTANT
const double FINE_STRUCTURE_CONSTANT
Conversion factors

const double DEG_PER_RAD
const double RAD_PER_DEG
const double MM_PER_INCH
const double M_PER_FOOT
const double JOULE_PER_CAL
const double CAL_PER_JOULE

Detailed Description

Mathematical and physical constants namespace.

This namespace contains definitions for some basic mathematical and physical constants. All constants are double precision.
There are basically two ways of accessing these constants:


Variable Documentation

const double a0

Bohr radius (alias)

Avogadro constant. In units of $mol^{-1}$ ( $6.0221367 \cdot 10^{23} mol^{-1}$).

Bohr radius. In units m ( $5.29177249 \cdot 10^{-11}$ m).

Boltzmann constant. In units of J/K ( $1.380657 \cdot 10^{-23}$ J/K).

const double c

C13C12 mass difference. In units ( $1.0033548$u)

Calories per Joule. 1/JOULE_PER_CAL

const int CUDA_BLOCK_SIZE_MAX = 256
const int CUDA_BLOCKS_PER_GRID_MAX = 65535
const int CUDA_ELEMENTS_GL = 2
const int CUDA_ELEMENTS_MERGE = 1024
const int CUDA_ELEMENTS_SORT = 512
const int CUDA_EXTENDED_BLOCK_SIZE_MAX = 2039
const int CUDA_INIT_FAIL = -1
const int CUDA_INIT_SUCCESS = 1
const int CUDA_MERGE_NUM = 0xFFFFFC00
const int CUDA_SORT_NUM = 0xFFFFFE00
const int CUDA_TEXTURE_THREAD_LIMIT = 384
const int CUDA_THREADS_GL = 256
const double CUT_LAMBDA_BREAK_0_1 = 2739.4f
const double CUT_LAMBDA_BREAK_1_2 = 1.4187e+04f
const double CUT_LAMBDA_L_2_A = 5.7661e+00f
const double CUT_LAMBDA_L_2_B = 8.6301e-04f
const double CUT_LAMBDA_Q_0_A = 1.9498e+00f
const double CUT_LAMBDA_Q_0_B = 2.4244e-03f
const double CUT_LAMBDA_Q_0_C = -2.4183e-07f
const double CUT_LAMBDA_Q_1_A = 3.6870e+00f
const double CUT_LAMBDA_Q_1_B = 1.1561e-03f
const double CUT_LAMBDA_Q_1_C = -1.0329e-08f
const unsigned int DEFAULT_NUM_OF_INTERPOLATION_POINTS = 3

Degree per rad. 57.2957795130823209

const double E

Euler's number - base of the natural logarithm.

const double e0

Elementary charge (alias).

Electron mass. In units of kg ( $9.1093897 \cdot 10^{-31}$ kg).

Electron mass In units ( $1,822.88850204(77)^{-1}$u).

Elementary charge. In units of C ( $1.60217738 \cdot 10^{-19} C$).

Internal theshold for equality comparisons. Default value is 1e-6.

const double F

Faraday constant (alias)

Referenced by LCMS::add_raw_spec_name_map().

const double FARADAY

Faraday constant (= NA * e0)

Fine structure constant. Without unit ( $7.29735 \cdot 10^{-3}$).

Gas constant (= NA * k)

Referenced by AAIndex::calculateGB().

Gravitational constant. In units of $Nm^2kg^{-2}$ ( $6.67259 \cdot 10^{-11} Nm^2kg^{-2}$).

const double h

Planck constant (alias)

Referenced by IDEvaluationBase::exportAsImage().

const double IW_HALF_NEUTRON_MASS = 0.5043325f
const double IW_NEUTRON_MASS = 1.00866491578f
const double IW_PROTON_MASS = 1.00727646688f
const double IW_QUARTER_NEUTRON_MASS = 0.252166228f

Joules per calorie. 4.184

const double k
const double LAMBDA_L_0 = 0.120398590399013419f
const double LAMBDA_L_1 = 0.635926795694698589e-3f
const double LOG_CONST = 0.346607f

m per foot. 3.048

const double MASS_EPSILON = 1e-4f

mm per inch. 25.4

const double MOL

Avogadro constant (alias)

const double NA

Avogadro constant (alias)

Neutron mass. In units of kg ( $1.6749286 \cdot 10^{-27}$ kg).

Neutron mass. In units ( $1.0086649156(6)$u)

const double ONEOLOG2E = 0.6931471806f
const double PEPTIDE_MASS_RULE_FACTOR = 0.000507f
const double PI
const double PLANCK

Planck constant. In units of Js ( $6.6260754 \cdot 10^{-34}$ Js).

const double POW_CONST = 0.33971f

Proton mass. In units of kg ( $1.6726230 \cdot 10^{-27}$ kg).

const double R

Gas constant (alias)

Referenced by AAIndex::calculateGB().

Rad per degree. 0.0174532925199432957

const int SHIFT23 = (1 << 23)
const double SHIFT23_00 = (1.0 / (1 << 23))

Speed of light. In units of m/s ( $2.99792458 \cdot 10^8 ms^{-1}$).

const int TBB_NUM_OF_GPU_DEVICES = 2

Vacuum permeability. In units of $Js^2C^{-2}m^{-1}$ ( $4\pi \cdot 10^{-7} Js^2C^{-2}m^{-1}$).

Vacuum permittivity. In units of $C^2J^{-1}m^{-1}$ ( $8.85419 \cdot 10^{-12} C^2J^{-1}m^{-1}$).

const double WAVELET_PERIODICITY = 6.229209734f

OpenMS / TOPP release 1.10.0 Documentation generated on Thu Mar 7 2013 09:42:59 using doxygen 1.7.1