Rosetta
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
numeric::statistics Namespace Reference

Functions

numeric::Real 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 corrcoef (utility::vector1< numeric::Real > const &vec1, utility::vector1< numeric::Real > const &vec2)
 
numeric::Real 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 cov (utility::vector1< numeric::Real > const &vec1, utility::vector1< numeric::Real > const &vec2)
 
numeric::Real cov_with_provided_mean (utility::vector1< numeric::Real > const &vec1, numeric::Real m1, utility::vector1< numeric::Real > const &vec2, numeric::Real m2)
 
cmplx errfcx (cmplx z, double relerr)
 
double errf (double x)
 
cmplx errf (cmplx z, double relerr)
 
cmplx errfi (cmplx z, double relerr)
 
double errfi (double x)
 
double errfc (double x)
 
cmplx errfc (cmplx z, double relerr)
 
double Dawson (double x)
 
cmplx Dawson (cmplx z, double relerr)
 
static double sinc (double x, double sinx)
 
static double sinh_taylor (double x)
 
static double sqr (double x)
 
cmplx w (cmplx z, double relerr)
 
static double erfcx_y100 (double y100)
 
double errfcx (double x)
 
static double w_im_y100 (double y100, double x)
 
double w_im (double x)
 
template<class Iterator , typename T >
mean (Iterator first, Iterator last, T)
 mean value of an input vector More...
 
template<class Iterator , typename T >
std_dev_with_provided_mean (Iterator first, Iterator last, T mean)
 
template<class Iterator , typename T >
std_dev (Iterator first, Iterator last, T)
 

Variables

static const double expa2n2 []
 
static const unsigned int expa2n2_length = 52
 

Function Documentation

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 
)

Definition at line 71 of file functions.cc.

References cov().

Referenced by corrcoef().

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 
)

Definition at line 101 of file functions.cc.

References cov().

Referenced by cov().

double numeric::statistics::Dawson ( double  x)

Definition at line 297 of file functions.cc.

References w_im().

std::complex< double > numeric::statistics::Dawson ( cmplx  z,
double  relerr 
)
static double numeric::statistics::erfcx_y100 ( double  y100)
static

Definition at line 747 of file functions.cc.

Referenced by errfcx().

double numeric::statistics::errf ( double  x)

Definition at line 131 of file functions.cc.

References errfcx(), and x().

Referenced by errf(), and errfi().

std::complex< double > numeric::statistics::errf ( cmplx  z,
double  relerr 
)

Definition at line 157 of file functions.cc.

References C, cimag, creal, errf(), Inf, utility::is_nan(), NaN, w(), w_im(), x(), and y().

double numeric::statistics::errfc ( double  x)

Definition at line 252 of file functions.cc.

References errfcx().

std::complex< double > numeric::statistics::errfc ( cmplx  z,
double  relerr 
)

Definition at line 260 of file functions.cc.

References C, cexp, cimag, creal, errfcx(), Inf, w(), w_im(), x(), and y().

std::complex< double > numeric::statistics::errfcx ( cmplx  z,
double  relerr 
)

Definition at line 126 of file functions.cc.

References C, cimag, creal, and w().

Referenced by Dawson(), errf(), errfc(), and w().

double numeric::statistics::errfcx ( double  x)

Definition at line 1155 of file functions.cc.

References erfcx_y100(), and x().

std::complex< double > numeric::statistics::errfi ( cmplx  z,
double  relerr 
)

Definition at line 240 of file functions.cc.

References C, cimag, creal, and errf().

double numeric::statistics::errfi ( double  x)

Definition at line 246 of file functions.cc.

References Inf, and w_im().

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.

Definition at line 38 of file functions.cc.

References numeric::log(), and docking::p.

template<class Iterator , typename T >
T numeric::statistics::mean ( Iterator  first,
Iterator  last,
 
)
inline

mean value of an input vector

Definition at line 34 of file functions.hh.

References assign_charges::first, amino_acids::size, and test.T007_TracerIO::T.

Referenced by corrcoef(), cov(), main(), std_dev(), and std_dev_with_provided_mean().

static double numeric::statistics::sinc ( double  x,
double  sinx 
)
inlinestatic

Definition at line 435 of file functions.cc.

References x().

Referenced by w().

static double numeric::statistics::sinh_taylor ( double  x)
inlinestatic

Definition at line 440 of file functions.cc.

References x().

Referenced by w().

static double numeric::statistics::sqr ( double  x)
inlinestatic

Definition at line 445 of file functions.cc.

References x().

Referenced by w().

template<class Iterator , typename T >
T numeric::statistics::std_dev ( Iterator  first,
Iterator  last,
 
)
inline

Definition at line 66 of file functions.hh.

References mean(), std_dev_with_provided_mean(), and test.T007_TracerIO::T.

template<class Iterator , typename T >
T numeric::statistics::std_dev_with_provided_mean ( Iterator  first,
Iterator  last,
mean 
)
inline

Definition at line 50 of file functions.hh.

References assign_charges::first, mean(), amino_acids::size, and test.T007_TracerIO::T.

Referenced by corrcoef(), and std_dev().

std::complex< double > numeric::statistics::w ( cmplx  z,
double  relerr 
)

Definition at line 470 of file functions.cc.

References test.T850_SubClassing::a, test.Workshop3test::a2, C, cexp, cimag, utility::copysign(), creal, errfcx(), expa2n2, expa2n2_length, utility::is_inf(), utility::is_nan(), numeric::log(), NaN, pi, sinc(), sinh_taylor(), sqr(), w_im(), x(), and y().

Referenced by basic::sampling::orientations::QuatSet::Add(), ObjexxFCL::format::bite(), Dawson(), errf(), errfc(), errfcx(), basic::sampling::orientations::Quaternion::euler(), ObjexxFCL::fixed_Fstring_of(), ObjexxFCL::fixed_string_of(), ObjexxFCL::general_Fstring_of(), ObjexxFCL::general_string_of(), numeric::deriv::helper(), basic::sampling::orientations::Quaternion::Normalize(), ObjexxFCL::operator<<(), numeric::operator<<(), utility::io::mpi_stream::basic_mpi_streambuf< Elem, Tr, ElemA, ByteT, ByteAT >::overflow(), zlib_stream::basic_zip_streambuf< Elem, Tr, ElemA, ByteT, ByteAT >::overflow(), basic::sampling::orientations::Quaternion::Print(), basic::sampling::orientations::QuaternionGrid::QuaternionGrid(), numeric::linear_algebra::qzvec(), basic::sampling::orientations::Quaternion::rotation_matrix(), ObjexxFCL::scientific_Fstring_of(), ObjexxFCL::scientific_string_of(), numeric::HomogeneousTransform< double >::show_stream(), ObjexxFCL::format::skip(), numeric::UniformRotationSampler::UniformRotationSampler(), numeric::geometry::vector_normal_to_ring_plane_of_best_fit(), numeric::geometry::hashing::xyzStripeHashWithMeta< float >::visit(), numeric::geometry::hashing::xyzStripeHashWithMeta< float >::visit_lax(), and utility::options::OptionCollection::wrapped().

double numeric::statistics::w_im ( double  x)

Definition at line 1596 of file functions.cc.

References w_im_y100(), and x().

Referenced by Dawson(), errf(), errfc(), errfi(), and w().

static double numeric::statistics::w_im_y100 ( double  y100,
double  x 
)
static

Definition at line 1190 of file functions.cc.

References NaN, and x().

Referenced by w_im().

Variable Documentation

const double numeric::statistics::expa2n2[]
static
Initial value:
= {
7.64405281671221563e-01, 3.41424527166548425e-01, 8.91072646929412548e-02, 1.35887299055460086e-02,
1.21085455253437481e-03, 6.30452613933449404e-05, 1.91805156577114683e-06, 3.40969447714832381e-08,
3.54175089099469393e-10, 2.14965079583260682e-12, 7.62368911833724354e-15, 1.57982797110681093e-17,
1.91294189103582677e-20, 1.35344656764205340e-23, 5.59535712428588720e-27, 1.35164257972401769e-30,
1.90784582843501167e-34, 1.57351920291442930e-38, 7.58312432328032845e-43, 2.13536275438697082e-47,
3.51352063787195769e-52, 3.37800830266396920e-57, 1.89769439468301000e-62, 6.22929926072668851e-68,
1.19481172006938722e-73, 1.33908181133005953e-79, 8.76924303483223939e-86, 3.35555576166254986e-92,
7.50264110688173024e-99, 9.80192200745410268e-106, 7.48265412822268959e-113, 3.33770122566809425e-120,
8.69934598159861140e-128, 1.32486951484088852e-135, 1.17898144201315253e-143, 6.13039120236180012e-152,
1.86258785950822098e-160, 3.30668408201432783e-169, 3.43017280887946235e-178, 2.07915397775808219e-187,
7.36384545323984966e-197, 1.52394760394085741e-206, 1.84281935046532100e-216, 1.30209553802992923e-226,
5.37588903521080531e-237, 1.29689584599763145e-247, 1.82813078022866562e-258, 1.50576355348684241e-269,
7.24692320799294194e-281, 2.03797051314726829e-292, 3.34880215927873807e-304,
0.0
}

Definition at line 449 of file functions.cc.

Referenced by w().

const unsigned int numeric::statistics::expa2n2_length = 52
static

Definition at line 466 of file functions.cc.

Referenced by w().