GPLIB++
Namespaces | Functions
statutils.h File Reference
#include <numeric>
#include <vector>
#include <algorithm>
#include <boost/bind.hpp>
#include <boost/cast.hpp>
#include "FatalException.h"

Go to the source code of this file.

Namespaces

 gplib
 

Functions

template<typename InputIterator >
std::iterator_traits
< InputIterator >::value_type 
gplib::Mean (InputIterator begin, InputIterator end)
 Calculate the mean for a given range. More...
 
template<typename InputIterator >
std::iterator_traits
< InputIterator >::value_type 
gplib::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. More...
 
template<typename InputIterator >
std::iterator_traits
< InputIterator >::value_type 
gplib::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. More...
 
template<typename InputIterator >
std::iterator_traits
< InputIterator >::value_type 
gplib::MeanErr (InputIterator begin, InputIterator end)
 Calculate the Mean Error for a given input range. More...
 
template<typename InputIterator >
std::iterator_traits
< InputIterator >::value_type 
gplib::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. More...
 
template<typename InputIterator >
std::iterator_traits
< InputIterator >::value_type 
gplib::StdDev (InputIterator begin, InputIterator end, typename std::iterator_traits< InputIterator >::value_type mv)
 Calculate the Standard deviation with a given mean. More...
 
template<typename InputIterator >
std::iterator_traits
< InputIterator >::value_type 
gplib::StdDev (InputIterator begin, InputIterator end)
 Calculate the Standard Deviation. More...
 
template<typename InputIterator >
void gplib::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. More...
 
template<typename InputIterator >
void gplib::SubMean (InputIterator begin, InputIterator end)
 Substract the mean from each element in the container, mean is calculated. More...
 
template<typename InputIterator >
std::iterator_traits
< InputIterator >::value_type 
gplib::Median (InputIterator begin, InputIterator end)
 Calculate the median for a vector style container. More...