SHORE API
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
shore::binomial Class Reference

Binomial distribution. More...

Public Member Functions

 binomial (const size_t n, const double p)
 Binomial distribution for n trials with probability p.
 
double pdf (const size_t k) const
 Density.
 
double cdf (const size_t k) const
 Cumulative distribution function, equivalent to cdf_P.
 
double cdf_P (const size_t k) const
 Cumulative distribution function, lower tail.
 
double cdf_Q (const size_t k) const
 Cumulative distribution function, upper tail.
 
double test_alt_less (const size_t k) const
 Hypothesis test. More...
 
double test_alt_greater (const size_t k) const
 Hypothesis test. More...
 
double test_alt_twosided (const size_t k) const
 Hypothesis test. More...
 

Detailed Description

Binomial distribution.

Member Function Documentation

double shore::binomial::test_alt_greater ( const size_t  k) const

Hypothesis test.

Alternative: true p is greater than the distribution's p.

double shore::binomial::test_alt_less ( const size_t  k) const

Hypothesis test.

Alternative: true p is less than the distribution's p.

double shore::binomial::test_alt_twosided ( const size_t  k) const

Hypothesis test.

Alternative: true p is not equal to the distribution's p


The documentation for this class was generated from the following file: