35#ifndef STK_LAW_FISHERSNEDECOR
36#define STK_LAW_FISHERSNEDECOR
173GetRNGstate();
Real s = Rf_rf(
df1,
df2); PutRNGstate();
return s;
177{
return Rf_df(x,
df1,
df2,
false);}
179{
return Rf_df(x,
df1,
df2,
true);}
181{
return Rf_pf(t,
df1,
df2,
true,
false);}
183{
return Rf_qf(p,
df1,
df2,
true,
false);}
In this file we define the interface base class IUnivLaw for all probabilities laws.
#define STKDOMAIN_ERROR_1ARG(Where, Arg, Error)
#define _T(x)
Let x unmodified.
FisherSnedecor distribution law.
virtual Real cdf(Real const &t) const
virtual ~FisherSnedecor()
destructor
virtual Real pdf(Real const &x) const
int df2_
Second degree of freedom.
virtual Real rand() const
int df1_
First degree of freedom.
virtual Real icdf(Real const &p) const
virtual Real lpdf(Real const &x) const
FisherSnedecor(int df1=1., int df2=1)
Default constructor.
Interface base class for all the univariate distributions.
virtual Real cdfc(Real const &t) const
calculate the complement of cumulative distribution function, called in statistics the survival funct...
virtual Real lcdfc(Real const &t) const
calculate the log-complement of cumulative distribution function Give the log-probability that a rand...
virtual Real lcdf(Real const &t) const
compute the lower tail log-cumulative distribution function Give the log-probability that a random va...
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
double Real
STK fundamental type of Real values.
The namespace STK is the main domain space of the Statistical ToolKit project.