Rosetta Utilities  2014.35
Namespaces | Functions
functions.hh File Reference

a collection of various functions to compute statistics. feel free to add your own More...

#include <platform/types.hh>
#include <numeric/types.hh>
#include <utility/vector1.hh>
#include <algorithm>
#include <cmath>
#include <complex>

Namespaces

 numeric
 Unit headers.
 
 numeric::statistics
 

Functions

template<class Iterator , typename T >
numeric::statistics::mean (Iterator first, Iterator last, T)
 mean value of an input vector More...
 
template<class Iterator , typename T >
numeric::statistics::std_dev_with_provided_mean (Iterator first, Iterator last, T mean)
 
template<class Iterator , typename T >
numeric::statistics::std_dev (Iterator first, Iterator last, T)
 
cmplx numeric::statistics::w (cmplx z, double relerr)
 
double numeric::statistics::w_im (double x)
 
cmplx numeric::statistics::errfcx (cmplx z, double relerr)
 
double numeric::statistics::errfcx (double x)
 
cmplx numeric::statistics::errf (cmplx z, double relerr)
 
double numeric::statistics::errf (double x)
 
cmplx numeric::statistics::errfi (cmplx z, double relerr)
 
double numeric::statistics::errfi (double x)
 
cmplx numeric::statistics::errfc (cmplx z, double relerr)
 
double numeric::statistics::errfc (double x)
 
cmplx numeric::statistics::Dawson (cmplx z, double relerr)
 
double numeric::statistics::Dawson (double x)
 
numeric::Real numeric::statistics::kl_divergence (utility::vector1< numeric::Real > const &prior, utility::vector1< numeric::Real > const &posterior)
 Returns the Kullback-Leibler divergence (aka relative entropy) between two discrete probability distributions. More...
 
numeric::Real numeric::statistics::corrcoef (utility::vector1< numeric::Real > const &vec1, utility::vector1< numeric::Real > const &vec2)
 
numeric::Real numeric::statistics::corrcoef_with_provided_mean_and_std_dev (utility::vector1< numeric::Real > const &vec1, numeric::Real m1, numeric::Real sd1, utility::vector1< numeric::Real > const &vec2, numeric::Real m2, numeric::Real sd2)
 
numeric::Real numeric::statistics::cov (utility::vector1< numeric::Real > const &vec1, utility::vector1< numeric::Real > const &vec2)
 
numeric::Real numeric::statistics::cov_with_provided_mean (utility::vector1< numeric::Real > const &vec1, numeric::Real m1, utility::vector1< numeric::Real > const &vec2, numeric::Real m2)
 

Detailed Description

a collection of various functions to compute statistics. feel free to add your own

Author
Florian Richter (flori.nosp@m.c@u..nosp@m.washi.nosp@m.ngto.nosp@m.n.edu), sep 08