31 #include "../../trace/trace.h"
35 : m_halfWindowSize(half_window_size)
40 : m_halfWindowSize(other.m_halfWindowSize)
55 auto it = data_points.begin();
61 while((it != data_points.end()) &&
76 new_trace.push_back({it->x, it->y});
83 data_points = std::move(new_trace);
finds all local maxima, i.e. any point that has a greater y value than both of its neighboring points...
std::size_t getHalfWindowSize() const
Trace & filter(Trace &data_points) const override
virtual ~FilterLocalMaximum()
std::size_t m_halfWindowSize
FilterLocalMaximum(std::size_t half_window_size)
A simple container of DataPoint instances.
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
std::vector< DataPoint >::const_iterator maxYDataPoint(std::vector< DataPoint >::const_iterator begin, std::vector< DataPoint >::const_iterator end)