29 #include "../../trace/trace.h"
32 #include "../../massspectrum/massspectrum.h"
41 : m_y_pass(other.m_y_pass)
47 Trace new_data_points;
48 for(
auto &&data_point : data_points)
52 new_data_points.push_back(data_point);
55 data_points = std::move(new_data_points);
63 : m_y_pass(other.m_y_pass)
69 Trace new_data_points;
70 for(
auto &&data_point : data_points)
74 new_data_points.push_back(data_point);
77 data_points = std::move(new_data_points);
83 : m_y_pass_ratio(y_pass)
88 : m_y_pass_ratio(other.m_y_pass_ratio)
94 auto it_max =
maxYDataPoint(data_points.begin(), data_points.end());
95 if(it_max == data_points.end())
98 Trace new_data_points;
99 for(
auto &&data_point : data_points)
101 if(data_point.y > pass)
103 new_data_points.push_back(data_point);
106 data_points = std::move(new_data_points);
112 : m_number_of_points(number_of_points)
118 : m_number_of_points(other.m_number_of_points)
132 std::sort(data_points.begin(),
140 std::sort(data_points.begin(),
164 for(
auto &&dataPoint : data_points)
166 dataPoint.y = std::floor(dataPoint.y);
181 for(
auto &&dataPoint : data_points)
183 dataPoint.y = std::round(dataPoint.y);
193 : m_dynamic(other.m_dynamic)
201 auto it_max =
maxYDataPoint(data_points.begin(), data_points.end());
202 if(it_max == data_points.end())
204 double maximum = it_max->y;
205 for(
auto &&dataPoint : data_points)
207 dataPoint.y = (dataPoint.y / maximum) *
m_dynamic;
219 std::size_t number_of_points)
220 : m_filterGreatestY(number_of_points)
226 : m_filterGreatestY(other.m_filterGreatestY)
242 : m_factor(other.m_factor)
250 for(
auto &&dataPoint : data_points)
252 dataPoint.y = dataPoint.y *
m_factor;