8 #ifndef AMPLITUDEPROCESSOR_H
9 #define AMPLITUDEPROCESSOR_H
11 #include "BaseLineProcessor.hpp"
12 #include "PeakFindProcessor.hpp"
13 #include "Exceptions.h"
53 = ComputeBaseLine(bline_range.
begin(), bline_range.
end());
56 = FindPeak(pf_range.
begin(), pf_range.
end());
58 if (pf_res.max < bl_res.
mean) {
63 AmplitudeProcResult res;
64 res.amp = pf_res.max - bl_res.
mean;
65 res.uamp = ::sqrt(::pow(bl_res.
stdev,2.0) );
67 res.baseline = bl_res.
mean;
68 res.ubaseline = bl_res.
stdev;
TrIterator< T > end() const
Get value of end iterator.
Definition: TrIterator.hpp:224
double amp
amplitude (i.e. peak - baseline)
Definition: AmplitudeProcessor.hpp:23
TrRange class.
Definition: TrIterator.hpp:173
double stdev
std. dev. of values within range
Definition: BaseLineProcessor.hpp:22
Result of the ComputeBaseline function.
Definition: BaseLineProcessor.hpp:18
double uamp
uncertainty in amplitude
Definition: AmplitudeProcessor.hpp:24
Result of FindPeak algorithm.
Definition: PeakFindProcessor.hpp:19
Result for ComputeAmplitude algorithm.
Definition: AmplitudeProcessor.hpp:20
TrIterator< T > begin() const
Get value of begin iterator.
Definition: TrIterator.hpp:222
Definition: AlgoIterator.hpp:12
double mean
mean of values within range
Definition: BaseLineProcessor.hpp:21
double baseline
mean value of trace within baseline search range
Definition: AmplitudeProcessor.hpp:26
double ubaseline
std. dev. of trace within baseline search range
Definition: AmplitudeProcessor.hpp:27
Definition: Exceptions.h:51