STK++ 0.9.13
|
ChiSquared distribution law. More...
#include <STK_Law_ChiSquared.h>
Public Types | |
typedef IUnivLaw< Real > | Base |
Public Member Functions | |
ChiSquared (int df=1) | |
Default constructor. | |
virtual | ~ChiSquared () |
destructor | |
int | df () const |
void | setDf (int df) |
virtual Real | rand () const |
virtual Real | pdf (Real const &x) const |
virtual Real | lpdf (Real const &x) const |
virtual Real | cdf (Real const &t) const |
virtual Real | icdf (Real const &p) const |
![]() | |
virtual | ~IUnivLaw () |
Virtual destructor. | |
virtual Real | lcdf (Real const &t) const |
compute the lower tail log-cumulative distribution function Give the log-probability that a random variate is less or equal to t. | |
virtual Real | cdfc (Real const &t) const |
calculate the complement of cumulative distribution function, called in statistics the survival function. | |
virtual Real | lcdfc (Real const &t) const |
calculate the log-complement of cumulative distribution function Give the log-probability that a random variate is greater than t. | |
![]() | |
String const & | name () const |
Static Public Member Functions | |
static Real | rand (int df) |
static Real | pdf (Real const &x, int df) |
static Real | lpdf (Real const &x, int df) |
static Real | cdf (Real const &t, int df) |
static Real | icdf (Real const &p, int df) |
Protected Attributes | |
int | df_ |
degree of freedom | |
![]() | |
String | name_ |
Name of the Law. | |
Additional Inherited Members | |
![]() | |
IUnivLaw (String const &name) | |
Constructor. | |
IUnivLaw (IUnivLaw const &law) | |
copy Constructor. | |
![]() | |
ILawBase (String const &name) | |
Constructor. | |
~ILawBase () | |
destructor. | |
ChiSquared distribution law.
In probability theory and statistics, the chi-squared distribution with k degrees of freedom is the distribution of a sum of the squares of k independent standard normal random variables. It is a special case of the gamma distribution and is one of the most widely used probability distributions in inferential statistics, e.g., in hypothesis testing or in construction of confidence intervals.
The probability density function (pdf) of the chi-squared distribution with n degree of freedom is
Definition at line 62 of file STK_Law_ChiSquared.h.
Definition at line 65 of file STK_Law_ChiSquared.h.
|
inline |
Default constructor.
df | degree of freedom parameter |
Definition at line 69 of file STK_Law_ChiSquared.h.
References ChiSquared(), df(), and STKDOMAIN_ERROR_1ARG.
Referenced by ChiSquared().
|
inlinevirtual |
t | a positive real value |
Implements STK::Law::IUnivLaw< Real >.
Definition at line 68 of file STK_Law_ChiSquared.cpp.
t | a positive real value |
df | degree of freedom parameter |
Definition at line 111 of file STK_Law_ChiSquared.cpp.
|
inline |
Definition at line 74 of file STK_Law_ChiSquared.h.
References df_.
Referenced by ChiSquared(), and setDf().
p | a probability number |
Implements STK::Law::IUnivLaw< Real >.
Definition at line 76 of file STK_Law_ChiSquared.cpp.
p | a probability number |
df | degree of freedom parameter |
Definition at line 120 of file STK_Law_ChiSquared.cpp.
x | a positive real value |
Reimplemented from STK::Law::IUnivLaw< Real >.
Definition at line 60 of file STK_Law_ChiSquared.cpp.
x | a positive real value |
df | degree of freedom parameter |
Definition at line 102 of file STK_Law_ChiSquared.cpp.
x | a positive real value |
Implements STK::Law::IUnivLaw< Real >.
Definition at line 55 of file STK_Law_ChiSquared.cpp.
x | a positive real value |
df | degree of freedom parameter |
Definition at line 93 of file STK_Law_ChiSquared.cpp.
|
virtual |
Implements STK::Law::IUnivLaw< Real >.
Definition at line 48 of file STK_Law_ChiSquared.cpp.
df | degree of freedom parameter |
Definition at line 84 of file STK_Law_ChiSquared.cpp.
df | degree of freedom parameter |
Definition at line 76 of file STK_Law_ChiSquared.h.
References df(), df_, and STKDOMAIN_ERROR_1ARG.
|
protected |
degree of freedom
Definition at line 136 of file STK_Law_ChiSquared.h.