OpenMS
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
beginThe iterator pointing to the beginning of the range.
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()()

auto operator() ( Iterator  begin,
Iterator  end 
) const
inline

References OpenMS::Math::sum().