resamples spectrum, apply smoothing, determines zero crossings, integrates peaks.
More...
#include <peakpickerqtof.hpp>
|
| SimplePeakArea (TReal integwith) |
|
template<typename Tzerocross , typename Tintensity , typename Tout > |
void | operator() (Tzerocross beginZ, Tzerocross endZ, Tintensity intensity, Tintensity resmpled, Tout area) const |
| intagrates the peak intesnities More...
|
|
template<typename TReal>
struct ralab::base::ms::SimplePeakArea< TReal >
resamples spectrum, apply smoothing, determines zero crossings, integrates peaks.
Definition at line 44 of file peakpickerqtof.hpp.
§ SimplePeakArea()
template<typename TReal >
§ operator()()
template<typename TReal >
template<typename Tzerocross , typename Tintensity , typename Tout >
void ralab::base::ms::SimplePeakArea< TReal >::operator() |
( |
Tzerocross |
beginZ, |
|
|
Tzerocross |
endZ, |
|
|
Tintensity |
intensity, |
|
|
Tintensity |
resmpled, |
|
|
Tout |
area |
|
) |
| const |
|
inline |
intagrates the peak intesnities
Definition at line 51 of file peakpickerqtof.hpp.
57 typedef typename std::iterator_traits<Tout>::value_type AreaType;
58 for( ; beginZ != endZ ; ++beginZ , ++area )
60 size_t idx =
static_cast<size_t>( *beginZ );
61 size_t start =
static_cast<size_t>( boost::math::round( idx -
integwith_ ) );
62 size_t end =
static_cast<size_t>( boost::math::round( idx +
integwith_ + 2.) );
64 for( ; start != end ; ++start )
66 aread += *(resmpled + start);
§ integwith_
template<typename TReal >
The documentation for this struct was generated from the following file: