Rosetta 3.3
Namespaces | Functions
src/numeric/statistics.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>

Namespaces

namespace  numeric
 

A 1D histogram based upon a map structure.


namespace  numeric::statistics

Functions

template<class Iterator , typename T >
numeric::statistics::mean (Iterator first, Iterator last, T)
 mean value of an input vector
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)
template<class T >
numeric::statistics::errfc (T x, double tol)
 complementary error function (provided since it is not available on all platforms' math.h) implemented as continued fraction
template<class T >
numeric::statistics::errf (T x, double tol)
 error function (provided since it is not available on all platforms' math.h) implemented using a Taylor series expansion
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.

Detailed Description

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

Author:
Florian Richter (floric@u.washington.edu), sep 08
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines