42 #ifndef OPENMS_TRANSFORMATIONS_FEATUREFINDER_SUPERHIRN_SUPERHIRNUTIL_H 43 #define OPENMS_TRANSFORMATIONS_FEATUREFINDER_SUPERHIRN_SUPERHIRNUTIL_H 45 #include <OpenMS/TRANSFORMATIONS/FEATUREFINDER/SUPERHIRN/SuperHirnConfig.h> 61 static bool compareMassValuesAtPPMLevel(
double massA,
double massB,
double ppmTolerance);
66 static double getMassErrorAtPPMLevel(
double mz,
double ppmTolerance);
75 double avMassPPM = (mzA + mzB) / 2000000.0;
76 double ppmDeltaTol = avMassPPM * ppmTol;
78 double deltaMass = fabs(mzA - mzB);
79 if (deltaMass > ppmDeltaTol)
91 return mz * ppmTol / 1000000.00;
95 #endif // OPENMS_TRANSFORMATIONS_FEATUREFINDER_SUPERHIRN_SUPERHIRNUTIL_H
static bool compareMassValuesAtPPMLevel(double massA, double massB, double ppmTolerance)
Definition: SuperHirnUtil.h:71
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
static double getMassErrorAtPPMLevel(double mz, double ppmTolerance)
Definition: SuperHirnUtil.h:89
Definition: SuperHirnUtil.h:53