|
libpappsomspp
Library for mass spectrometry
|
finds all local maxima, i.e. any point that has a greater y value than both of its neighboring points and only keep those points More...
#include <filterlocalmaximum.h>
Public Member Functions | |
| FilterLocalMaximum (std::size_t half_window_size) | |
| FilterLocalMaximum (const FilterLocalMaximum &other) | |
| virtual | ~FilterLocalMaximum () |
| Trace & | filter (Trace &data_points) const override |
| std::size_t | getHalfWindowSize () const |
Public Member Functions inherited from pappso::FilterInterface | |
| virtual | ~FilterInterface () |
Private Attributes | |
| std::size_t | m_halfWindowSize = 0 |
finds all local maxima, i.e. any point that has a greater y value than both of its neighboring points and only keep those points
usefull documentation : http://pd.chem.ucl.ac.uk/pdnn/peaks/peakindx.htm
Definition at line 43 of file filterlocalmaximum.h.
| FilterLocalMaximum::FilterLocalMaximum | ( | std::size_t | half_window_size | ) |
Default constructor
Definition at line 34 of file filterlocalmaximum.cpp.
References m_halfWindowSize.
Referenced by FilterLocalMaximum().
| FilterLocalMaximum::FilterLocalMaximum | ( | const FilterLocalMaximum & | other | ) |
Copy constructor
| other | TODO |
Definition at line 39 of file filterlocalmaximum.cpp.
References FilterLocalMaximum(), and m_halfWindowSize.
|
virtual |
Implements pappso::FilterInterface.
Definition at line 49 of file filterlocalmaximum.cpp.
References m_halfWindowSize, and pappso::maxYDataPoint().
| std::size_t FilterLocalMaximum::getHalfWindowSize | ( | ) | const |
Definition at line 88 of file filterlocalmaximum.cpp.
References m_halfWindowSize.
|
private |
Definition at line 68 of file filterlocalmaximum.h.
Referenced by FilterLocalMaximum(), FilterLocalMaximum(), filter(), and getHalfWindowSize().