Rosetta
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Macros | Typedefs | Functions | Variables
functions.cc File Reference
#include <numeric/statistics/functions.hh>
#include <numeric/types.hh>
#include <utility/vector1.hh>
#include <utility/numbers.hh>
#include <cmath>
#include <cfloat>
#include <limits>

Go to the source code of this file.

Namespaces

 numeric
 Unit headers.
 
 numeric::statistics
 

Macros

#define C(a, b)   cmplx(a,b)
 
#define cexp(z)   std::exp(z)
 
#define creal(z)   std::real(z)
 
#define cimag(z)   std::imag(z)
 
#define cpolar(r, t)   std::polar(r,t)
 
#define Inf   std::numeric_limits<double>::infinity()
 
#define NaN   std::numeric_limits<double>::quiet_NaN()
 

Typedefs

typedef std::complex< doublecmplx
 

Functions

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)
 
cmplx numeric::statistics::errfcx (cmplx z, double relerr)
 
double numeric::statistics::errf (double x)
 
cmplx numeric::statistics::errf (cmplx z, double relerr)
 
cmplx numeric::statistics::errfi (cmplx z, double relerr)
 
double numeric::statistics::errfi (double x)
 
double numeric::statistics::errfc (double x)
 
cmplx numeric::statistics::errfc (cmplx z, double relerr)
 
double numeric::statistics::Dawson (double x)
 
cmplx numeric::statistics::Dawson (cmplx z, double relerr)
 
static double numeric::statistics::sinc (double x, double sinx)
 
static double numeric::statistics::sinh_taylor (double x)
 
static double numeric::statistics::sqr (double x)
 
cmplx numeric::statistics::w (cmplx z, double relerr)
 
static double numeric::statistics::erfcx_y100 (double y100)
 
double numeric::statistics::errfcx (double x)
 
static double numeric::statistics::w_im_y100 (double y100, double x)
 
double numeric::statistics::w_im (double x)
 

Variables

static const double numeric::statistics::expa2n2 []
 
static const unsigned int numeric::statistics::expa2n2_length = 52
 

Macro Definition Documentation

#define C (   a,
 
)    cmplx(a,b)
#define cexp (   z)    std::exp(z)
#define cimag (   z)    std::imag(z)
#define cpolar (   r,
 
)    std::polar(r,t)

Definition at line 31 of file functions.cc.

#define creal (   z)    std::real(z)
#define Inf   std::numeric_limits<double>::infinity()
#define NaN   std::numeric_limits<double>::quiet_NaN()

Typedef Documentation

typedef std::complex<double> cmplx

Definition at line 26 of file functions.cc.