statutils.h File Reference

#include <numeric>
#include <vector>
#include <algorithm>
#include <boost/bind.hpp>
#include <boost/cast.hpp>
#include "CFatalException.h"

Go to the source code of this file.

Functions

template<typename InputIterator>
std::iterator_traits
< InputIterator >::value_type 
Mean (InputIterator begin, InputIterator end)
 Calculate the mean for a given range.
template<typename InputIterator>
std::iterator_traits
< InputIterator >::value_type 
Variance (InputIterator begin, InputIterator end, typename std::iterator_traits< InputIterator >::value_type mv)
 Calculate the Variance and give the mean as a third input parameter.
template<typename InputIterator>
std::iterator_traits
< InputIterator >::value_type 
Variance (InputIterator begin, InputIterator end)
 Calculate the Variance for a given range when the mean is not known and has to be calculated as well.
template<typename InputIterator>
std::iterator_traits
< InputIterator >::value_type 
MeanErr (InputIterator begin, InputIterator end)
 Calculate the Mean Error for a given input range.
template<typename InputIterator>
std::iterator_traits
< InputIterator >::value_type 
MeanErr (InputIterator begin, InputIterator end, typename std::iterator_traits< InputIterator >::value_type mv)
 Calculate the Mean Error for a given input range when the mean is known and passed as a third parameter.
template<typename InputIterator>
std::iterator_traits
< InputIterator >::value_type 
StdDev (InputIterator begin, InputIterator end, typename std::iterator_traits< InputIterator >::value_type mv)
 Calculate the Standard deviation with a given mean.
template<typename InputIterator>
std::iterator_traits
< InputIterator >::value_type 
StdDev (InputIterator begin, InputIterator end)
 Calculate the Standard Deviation.
template<typename InputIterator>
void SubMean (InputIterator begin, InputIterator end, typename std::iterator_traits< InputIterator >::value_type mean)
 Substract the mean from each element in the container, mean is passed as a parameter.
template<typename InputIterator>
void SubMean (InputIterator begin, InputIterator end)
 Substract the mean from each element in the container, mean is calculated.
template<typename InputIterator>
std::iterator_traits
< InputIterator >::value_type 
Median (InputIterator begin, InputIterator end)
 Calculate the median for a vector style container.


Generated on Fri Jul 4 15:30:21 2008 for GPLIB++ by  doxygen 1.5.5