31 std::vector<PeakIonIsotopeMatch>::iterator end,
33 std::size_t peptide_size)
36 return std::find_if(begin, end, [peak_ion, peptide_size](
const PeakIonIsotopeMatch &to_compare) {
39 if((to_compare.getPeptideFragmentIonSp().get()->size() +
40 peak_ion.getPeptideFragmentIonSp().get()->size()) == peptide_size)
42 if(peptideIonTypeIsComplement(to_compare.getPeptideIonType(),
43 peak_ion.getPeptideIonType()))
45 if(to_compare.getPeptideNaturalIsotopeAverageSp().get()->getIsotopeNumber() ==
46 peak_ion.getPeptideNaturalIsotopeAverageSp().get()->getIsotopeNumber())
std::vector< PeakIonIsotopeMatch >::iterator findComplementIonType(std::vector< PeakIonIsotopeMatch >::iterator begin, std::vector< PeakIonIsotopeMatch >::iterator end, const PeakIonIsotopeMatch &peak_ion, std::size_t peptide_size)
find the first element containing the complementary ion complementary ion of y1 is b(n-1) for instanc...