OpenMS
Loading...
Searching...
No Matches
MSExperiment::SumIntensityReduction Struct Reference

Calculates the sum of intensities for a range of elements. More...

#include <OpenMS/KERNEL/MSExperiment.h>

Public Member Functions

template<typename Iterator >
auto operator() (Iterator begin, Iterator end) const
 

Detailed Description

Calculates the sum of intensities for a range of elements.

Template Parameters
IteratorThe iterator type.
Parameters
[in]beginThe iterator pointing to the beginning of the range.
[in]endThe iterator pointing to the end of the range.
Returns
The sum of intensities.
Exceptions
staticassert fails if the iterator value type does not have a getIntensity() member function.

Member Function Documentation

◆ operator()()

template<typename Iterator >
auto operator() ( Iterator  begin,
Iterator  end 
) const
inline