78 return "labeled_pair_finder";
91 void run(
const std::vector<ConsensusMap> & input_maps,
ConsensusMap & result_map)
override;
96 inline double PValue_(
double x,
double m,
double sig1,
double sig2)
100 return 1 - std::erf((x - m) / sig2 / 0.707106781);
104 return 1 - std::erf((m - x) / sig1 / 0.707106781);
The base class of all element group finding algorithms.
Definition: BaseGroupFinder.h:64
A container for consensus elements.
Definition: ConsensusMap.h:92
The LabeledPairFinder allows the matching of labeled features (features with a fixed distance).
Definition: LabeledPairFinder.h:57
LabeledPairFinder()
Default constructor.
~LabeledPairFinder() override
Destructor.
Definition: LabeledPairFinder.h:65
LabeledPairFinder & operator=(const LabeledPairFinder &source)
Assignment operator not implemented => private.
void run(const std::vector< ConsensusMap > &input_maps, ConsensusMap &result_map) override
Run the algorithm.
LabeledPairFinder(const LabeledPairFinder &source)
Copy constructor not implemented => private.
static BaseGroupFinder * create()
Returns an instance of this class.
Definition: LabeledPairFinder.h:70
static const String getProductName()
Returns the name of this module.
Definition: LabeledPairFinder.h:76
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:96
A more convenient string class.
Definition: String.h:60
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48