extends peak to the left and to the right to the next local minimum or a predefined threshol or a maximum allowed extension.
More...
#include <peakpickerqtof.hpp>
|
| LocalMinPeakArea (TReal integwith, TReal threshold=.1) |
|
template<typename Tzerocross , typename Tintensity , typename Tout > |
void | operator() (Tzerocross beginZ, Tzerocross endZ, Tintensity intensity, Tintensity resampled, Tout area) const |
| intagrates the peak intesnities More...
|
|
|
template<typename TInt > |
void | mextend (TInt &start, TInt &end, TInt idx) const |
| exend peak to left and rigth More...
|
|
template<typename TReal>
struct ralab::base::ms::LocalMinPeakArea< TReal >
extends peak to the left and to the right to the next local minimum or a predefined threshol or a maximum allowed extension.
Definition at line 76 of file peakpickerqtof.hpp.
§ value_type
template<typename TReal >
§ LocalMinPeakArea()
template<typename TReal >
- Parameters
-
integwith | maximal allowed peak width +- in pixel |
Definition at line 81 of file peakpickerqtof.hpp.
§ operator()()
template<typename TReal >
template<typename Tzerocross , typename Tintensity , typename Tout >
intagrates the peak intesnities
Definition at line 89 of file peakpickerqtof.hpp.
95 typedef typename std::iterator_traits<Tout>::value_type AreaType;
96 for( ; beginZ != endZ ; ++beginZ , ++area )
98 size_t idx =
static_cast<size_t>( *beginZ );
99 size_t start =
static_cast<size_t>( boost::math::round( idx -
integwith_ ) );
100 size_t end =
static_cast<size_t>( boost::math::round( idx +
integwith_ + 2) );
102 Tintensity st = intensity + start;
103 Tintensity en = intensity + end;
104 Tintensity center = intensity + idx;
105 std::ptrdiff_t x1 = std::distance(st, center);
106 std::ptrdiff_t y1 = std::distance(center,en);
108 std::ptrdiff_t x2 = std::distance(intensity,st);
109 std::ptrdiff_t y2 = std::distance(intensity,en);
110 std::ptrdiff_t pp = std::distance(st,en);
111 AreaType areav = std::accumulate(resampled+x2,resampled+y2,0.);
void mextend(TInt &start, TInt &end, TInt idx) const
exend peak to left and rigth
§ mextend()
template<typename TReal >
template<typename TInt >
exend peak to left and rigth
Definition at line 119 of file peakpickerqtof.hpp.
121 typedef typename std::iterator_traits<TInt>::value_type Intensitytype;
123 for(TInt intens = idx ; intens >= start; --intens){
124 Intensitytype val1 = *intens;
125 Intensitytype val2 = *(intens-1);
138 for(TInt intens = idx ; intens <= end; ++intens){
139 Intensitytype val1 = *intens;
140 Intensitytype val2 = *(intens+1);
§ integwith_
template<typename TReal >
§ threshold_
template<typename TReal >
The documentation for this struct was generated from the following file: