libpappsomspp
Library for mass spectrometry
|
keep N datapoints form the greatest intensities to the lowest More...
#include <filterpass.h>
Public Member Functions | |
FilterGreatestY (std::size_t number_of_points=0) | |
constructor with the number of datapoints to keep More... | |
FilterGreatestY (const FilterGreatestY &other) | |
virtual | ~FilterGreatestY () |
FilterGreatestY & | operator= (const FilterGreatestY &other) |
Trace & | filter (Trace &data_points) const override |
std::size_t | getNumberOfPoints () const |
![]() | |
virtual | ~FilterInterface () |
Private Attributes | |
std::size_t | m_numberOfPoints = 0 |
keep N datapoints form the greatest intensities to the lowest
Definition at line 95 of file filterpass.h.
FilterGreatestY::FilterGreatestY | ( | std::size_t | number_of_points = 0 | ) |
constructor with the number of datapoints to keep
number_of_points | maximum number of points accepted in resulting spectrum |
Definition at line 146 of file filterpass.cpp.
FilterGreatestY::FilterGreatestY | ( | const FilterGreatestY & | other | ) |
Definition at line 152 of file filterpass.cpp.
|
inlinevirtual |
Definition at line 105 of file filterpass.h.
Implements pappso::FilterInterface.
Definition at line 168 of file filterpass.cpp.
References pappso::a, pappso::b, and m_numberOfPoints.
Referenced by pappso::MassSpectrumFilterGreatestItensities::filter(), and pappso::XtandemSpectrumProcess::process().
std::size_t FilterGreatestY::getNumberOfPoints | ( | ) | const |
Definition at line 193 of file filterpass.cpp.
References m_numberOfPoints.
Referenced by pappso::XtandemSpectrumProcess::getNmostIntense().
FilterGreatestY & FilterGreatestY::operator= | ( | const FilterGreatestY & | other | ) |
Definition at line 159 of file filterpass.cpp.
References m_numberOfPoints.
|
private |
Definition at line 114 of file filterpass.h.
Referenced by filter(), getNumberOfPoints(), and operator=().