57 return dist(generator.engine());
95 return dist(generator.engine());
116 return ( a*std::log(d1x) + b*std::log(
static_cast<Real>(
df2))
117 - (a + b)*std::log(d1x +
static_cast<Real>(
df2))
119 - (std::lgamma(a) + std::lgamma(b) - std::lgamma(a + b)));
130 if (t <= 0.)
return 0.;
144 if ((p > 1.) || (p < 0.))
146 if (p == 0.)
return 0.;
In this file we declare functions around the beta function ratio.
In this file we define the FisherSnedecor probability distribution.
In this file we define the utilities constant and method for the Law namespace.
#define STKDOMAIN_ERROR_1ARG(Where, Arg, Error)
virtual Real cdf(Real const &t) const
virtual Real pdf(Real const &x) const
Integer df2_
Second degree of freedom.
virtual Real rand() const
virtual Real icdf(Real const &p) const
virtual Real lpdf(Real const &x) const
Integer df1_
First degree of freedom.
Real betaRatio(Real const &a, Real const &b, Real const &x, bool lower_tail=true)
Compute the incomplete beta function ratio Compute the beta ratio function.
Real dist(ExprBase< Container1D1 > const &x, ExprBase< Container1D2 > const &y)
Compute the distance between two vectors.
double Real
STK fundamental type of Real values.
int Integer
STK fundamental type of integer values.
Real quantile_bisection(Cdf const &cdf, Real const &p, Real lo, Real hi)
Compute the quantile of a continuous distribution by bisection on its cumulative distribution functio...
This is the namespace enclosing the classes handling the usual probabilities Laws.
The namespace STK is the main domain space of the Statistical ToolKit project.
Arithmetic properties of STK fundamental types.
static bool isInfinite(Type const &x)
static Type NA()
Adding a Non Available (NA) special number.
static bool isNA(Type const &x)