libpappsomspp
Library for mass spectrometry
|
keep N datapoints form the greatest intensities to the lowest within a mass range in dalton More...
#include <filterpass.h>
Public Member Functions | |
FilterGreatestYperWindow (double window_range, std::size_t number_of_points_per_window) | |
constructor with the number of datapoints to keep More... | |
FilterGreatestYperWindow (const FilterGreatestYperWindow &other) | |
virtual | ~FilterGreatestYperWindow () |
FilterGreatestYperWindow & | operator= (const FilterGreatestYperWindow &other) |
Trace & | filter (Trace &data_points) const override |
std::size_t | getNumberOfPoints () const |
![]() | |
virtual | ~FilterInterface () |
Private Attributes | |
double | m_xWindowRange = 1 |
std::size_t | m_numberOfPoints = 0 |
keep N datapoints form the greatest intensities to the lowest within a mass range in dalton
Definition at line 121 of file filterpass.h.
FilterGreatestYperWindow::FilterGreatestYperWindow | ( | double | window_range, |
std::size_t | number_of_points_per_window | ||
) |
constructor with the number of datapoints to keep
window_range | mass range to consider (must be greater than 0.5) |
number_of_points_per_window | maximum number of points accepted per mass window in resulting spectrum |
Definition at line 199 of file filterpass.cpp.
References m_xWindowRange.
FilterGreatestYperWindow::FilterGreatestYperWindow | ( | const FilterGreatestYperWindow & | other | ) |
Definition at line 215 of file filterpass.cpp.
|
inlinevirtual |
Definition at line 133 of file filterpass.h.
Implements pappso::FilterInterface.
Definition at line 235 of file filterpass.cpp.
References m_numberOfPoints, m_xWindowRange, pappso::minYDataPoint(), and pappso::Trace::sortX().
std::size_t FilterGreatestYperWindow::getNumberOfPoints | ( | ) | const |
Definition at line 308 of file filterpass.cpp.
References m_numberOfPoints.
FilterGreatestYperWindow & FilterGreatestYperWindow::operator= | ( | const FilterGreatestYperWindow & | other | ) |
|
private |
Definition at line 143 of file filterpass.h.
Referenced by filter(), getNumberOfPoints(), and operator=().
|
private |
Definition at line 142 of file filterpass.h.
Referenced by FilterGreatestYperWindow(), filter(), and operator=().