35 #ifndef OPENMS_ANALYSIS_MAPMATCHING_LABELEDPAIRFINDER_H 36 #define OPENMS_ANALYSIS_MAPMATCHING_LABELEDPAIRFINDER_H 40 #include <boost/math/tr1.hpp> 80 return "labeled_pair_finder";
93 virtual void run(
const std::vector<ConsensusMap> & input_maps,
ConsensusMap & result_map);
98 inline double PValue_(
double x,
double m,
double sig1,
double sig2)
102 return 1 - boost::math::tr1::erf((x - m) / sig2 / 0.707106781);
106 return 1 - boost::math::tr1::erf((m - x) / sig1 / 0.707106781);
122 #endif // OPENMS_ANALYSIS_MAPMATCHER_LABELEDPAIRFINDER_H A more convenient string class.
Definition: String.h:57
static const String getProductName()
Returns the name of this module.
Definition: LabeledPairFinder.h:78
A container for consensus elements.
Definition: ConsensusMap.h:72
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
virtual ~LabeledPairFinder()
Destructor.
Definition: LabeledPairFinder.h:67
static BaseGroupFinder * create()
Returns an instance of this class.
Definition: LabeledPairFinder.h:72
The base class of all element group finding algorithms.
Definition: BaseGroupFinder.h:62
double PValue_(double x, double m, double sig1, double sig2)
return the p-value at position x for the bi-Gaussian distribution with mean m and standard deviation ...
Definition: LabeledPairFinder.h:98
The LabeledPairFinder allows the matching of labeled features (features with a fixed distance)...
Definition: LabeledPairFinder.h:57