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 |
![]() | |
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.
FilterLocalMaximum::FilterLocalMaximum | ( | const FilterLocalMaximum & | other | ) |
|
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 filter(), and getHalfWindowSize().