OpenMS
SimplePairFinder.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Timo Sachsenberg $
6 // $Authors: $
7 // --------------------------------------------------------------------------
8 
9 
10 #ifndef OPENMS_ANALYSIS_MAPMATCHING_SIMPLEPAIRFINDER_H
11 #define OPENMS_ANALYSIS_MAPMATCHING_SIMPLEPAIRFINDER_H
12 
14 
15 #define V_SimplePairFinder(bla) // std::cout << bla << std::endl;
16 
17 namespace OpenMS
18 {
19 
55  class OPENMS_DLLAPI SimplePairFinder :
56  public BaseGroupFinder
57  {
58 public:
61 
65  ~SimplePairFinder() override
66  {
67  }
68 
77  void run(const std::vector<ConsensusMap> & input_maps, ConsensusMap & result_map) override;
78 
79 protected:
80 
81  //docu in base class
82  void updateMembers_() override;
83 
85  double diff_exponent_[2];
86 
88  double diff_intercept_[2];
89 
92 
95  double similarity_(ConsensusFeature const & left, ConsensusFeature const & right) const;
96 
97  }; // SimplePairFinder
98 
99 } // namespace OpenMS
100 
101 #endif // OPENMS_ANALYSIS_MAPMATCHING_SimplePairFinder_H
102 
103 /*
104 
105 gnuplot history - how the plot was created - please do not delete this receipt
106 
107 f(x,intercept,exponent)=1/(1+(abs(x)*intercept)**exponent)
108 set terminal postscript enhanced color
109 set output "choosingsimplepairfinderparams.ps"
110 set size ratio .3
111 plot [-3:3] [0:1] f(x,1,1), f(x,2,1), f(x,1,2), f(x,2,2)
112 
113 */
The base class of all element group finding algorithms.
Definition: BaseGroupFinder.h:38
A consensus feature spanning multiple LC-MS/MS experiments.
Definition: ConsensusFeature.h:45
A container for consensus elements.
Definition: ConsensusMap.h:66
This class implements a simple point pair finding algorithm.
Definition: SimplePairFinder.h:57
SimplePairFinder()
Constructor.
~SimplePairFinder() override
Destructor.
Definition: SimplePairFinder.h:65
void run(const std::vector< ConsensusMap > &input_maps, ConsensusMap &result_map) override
Run the algorithm.
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
BaseGroupFinder Base
Base class.
Definition: SimplePairFinder.h:60
double similarity_(ConsensusFeature const &left, ConsensusFeature const &right) const
Compute the similarity for a pair of elements.
double pair_min_quality_
Minimal pair quality.
Definition: SimplePairFinder.h:91
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19