79 std::vector<Precursor> & precursors,
80 std::vector<double> & precursors_rt,
81 std::vector<Size> & precursor_scan_index);
98 static void writeHist(
const String& out_csv,
99 const std::vector<double> & delta_mzs,
100 const std::vector<double> & mzs,
101 const std::vector<double> & rts);
116 static std::set<Size> correctToNearestMS1Peak(
MSExperiment & exp,
119 std::vector<double> & delta_mzs,
120 std::vector<double> & mzs,
121 std::vector<double> & rts);
137 static std::set<Size> correctToHighestIntensityMS1Peak(
MSExperiment & exp,
140 std::vector<double> & delta_mzs,
141 std::vector<double> & mzs,
142 std::vector<double> & rts);
168 static std::set<Size> correctToNearestFeature(
const FeatureMap& features,
170 double rt_tolerance_s = 0.0,
171 double mz_tolerance = 0.0,
173 bool believe_charge =
false,
174 bool keep_original =
false,
175 bool all_matching_features =
false,
177 int debug_level = 0);
192 static bool overlaps_(
const Feature& feature,
195 const double rt_tolerance);
209 static bool compatible_(
const Feature& feature,
212 Size max_trace_number = 2,
213 int debug_level = 0);