54 std::vector<TracePeak>::iterator
56 std::vector<TracePeak>::iterator end,
57 const std::vector<double> &rt_list,
58 std::size_t &nb_peaks)
61 auto itend = std::partition(begin, end, [rt_list](
const TracePeak &
a) {
62 for(
double rt : rt_list)
71 nb_peaks = std::distance(begin, itend);
74 return std::max_element(
76 return a.getArea() <
b.getArea();
80 std::vector<TracePeak>::iterator
82 std::vector<TracePeak>::iterator end,
virtual void setTracePeak(TracePeak &xic_peak) override
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
PMSPP_LIB_DECL std::vector< TracePeak >::iterator findBestTracePeakGivenRtList(std::vector< TracePeak >::iterator begin, std::vector< TracePeak >::iterator end, const std::vector< double > &rt_list, std::size_t &nb_peaks)
find the best peak matching a list of retention times
PMSPP_LIB_DECL std::vector< TracePeak >::iterator findTracePeakGivenRt(std::vector< TracePeak >::iterator begin, std::vector< TracePeak >::iterator end, double rt)
find the peak matching a retention time