6 #ifndef BASELINEPROCESSOR_H
7 #define BASELINEPROCESSOR_H
11 #include "Exceptions.h"
69 double ComputeStDev(
const TrIterator<T>& begin,
const TrIterator<T>& end,
double mean)
77 TrIterator<T> it=begin;
81 stdev2 += ::pow(tmpdiff,2.0);
87 return ::sqrt(stdev2 / (n - 1.0));
97 BaseLineProcResult ComputeBaseLine(
const TrIterator<T>& begin,
const TrIterator<T>& end)
99 double mean = ComputeMean<T>(begin, end);
100 double stdev = ComputeStDev<T>(begin, end, mean);
102 BaseLineProcResult res;
TrIterator template class.
Definition: TrIterator.hpp:24
double stdev
std. dev. of values within range
Definition: BaseLineProcessor.hpp:22
Result of the ComputeBaseline function.
Definition: BaseLineProcessor.hpp:18
Definition: AlgoIterator.hpp:12
double mean
mean of values within range
Definition: BaseLineProcessor.hpp:21