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;