STK++ 0.9.13
|
Weibull distribution law. More...
#include <STK_Law_Weibull.h>
Public Types | |
typedef IUnivLaw< Real > | Base |
Public Member Functions | |
Weibull (Real const &k=1., Real const &lambda=1.) | |
Default constructor. | |
virtual | ~Weibull () |
destructor | |
Real const & | k () const |
Real const & | lambda () const |
void | setK (Real const &k) |
void | setLambda (Real const &lambda) |
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 |
The cumulative distribution function for the Weibull distribution is ![]() | |
virtual Real | icdf (Real const &p) const |
The quantile (inverse cumulative distribution) function for the Weibull distribution is ![]() | |
![]() | |
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 (Real const &k, Real const &lambda) |
static Real | pdf (Real const &x, Real const &k, Real const &lambda) |
static Real | lpdf (Real const &x, Real const &k, Real const &lambda) |
static Real | cdf (Real const &t, Real const &k, Real const &lambda) |
static Real | icdf (Real const &p, Real const &k, Real const &lambda) |
Compute the inverse cumulative distribution function at p of the standard log-normal distribution. | |
Protected Attributes | |
Real | k_ |
The shape parameter. | |
Real | lambda_ |
The scale parameter. | |
![]() | |
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. | |
Weibull distribution law.
In probability theory and statistics, the Weibull distribution is a continuous probability distribution. It is named after Waloddi Weibull, who described it in detail in 1951.
The probability density function of a Weibull random variable is
where k > 0 is the shape parameter and
Definition at line 60 of file STK_Law_Weibull.h.
Definition at line 63 of file STK_Law_Weibull.h.
Default constructor.
k,lambda | shape and scale (dispersion) parameters |
Definition at line 67 of file STK_Law_Weibull.h.
|
inlinevirtual |
The cumulative distribution function for the Weibull distribution is
t | a positive real value |
Implements STK::Law::IUnivLaw< Real >.
Definition at line 71 of file STK_Law_Weibull.cpp.
t | a positive real value |
k,lambda | shape and scale (dispersion) parameters |
Definition at line 112 of file STK_Law_Weibull.cpp.
The quantile (inverse cumulative distribution) function for the Weibull distribution is
p | a probability number |
Implements STK::Law::IUnivLaw< Real >.
Definition at line 80 of file STK_Law_Weibull.cpp.
Compute the inverse cumulative distribution function at p of the standard log-normal distribution.
p | a probability number. |
k,lambda | shape and scale (dispersion) parameters |
Definition at line 123 of file STK_Law_Weibull.cpp.
Definition at line 73 of file STK_Law_Weibull.h.
References k_.
Referenced by setK().
Definition at line 75 of file STK_Law_Weibull.h.
References lambda_.
Referenced by setLambda().
x | a positive real value |
Reimplemented from STK::Law::IUnivLaw< Real >.
Definition at line 62 of file STK_Law_Weibull.cpp.
x | a positive real value |
k,lambda | shape and scale (dispersion) parameters |
Definition at line 104 of file STK_Law_Weibull.cpp.
x | a positive real value |
Implements STK::Law::IUnivLaw< Real >.
Definition at line 55 of file STK_Law_Weibull.cpp.
x | a positive real value |
k,lambda | shape and scale (dispersion) parameters |
Definition at line 96 of file STK_Law_Weibull.cpp.
|
virtual |
Implements STK::Law::IUnivLaw< Real >.
Definition at line 48 of file STK_Law_Weibull.cpp.
k,lambda | shape and scale (dispersion) parameters |
Definition at line 88 of file STK_Law_Weibull.cpp.
k | set the shape parameter |
Definition at line 77 of file STK_Law_Weibull.h.
References k(), k_, and STKDOMAIN_ERROR_1ARG.
lambda | set the scale parameter |
Definition at line 83 of file STK_Law_Weibull.h.
References lambda(), lambda_, and STKDOMAIN_ERROR_1ARG.
|
protected |
The shape parameter.
Definition at line 149 of file STK_Law_Weibull.h.
|
protected |
The scale parameter.
Definition at line 151 of file STK_Law_Weibull.h.
Referenced by lambda(), and setLambda().