35#ifndef STK_LAW_LOGISTIC_H
36#define STK_LAW_LOGISTIC_H
201GetRNGstate();
Real s = Rf_rlogis(
mu,
scale); PutRNGstate();
return s;
205{
return Rf_dlogis(x,
mu,
scale,
false);}
207{
return Rf_dlogis(x,
mu,
scale,
true);}
209{
return Rf_plogis(t,
mu,
scale,
true,
false);}
211{
return Rf_qlogis(p,
mu,
scale,
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.
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...
Logistic distribution law.
virtual Real pdf(Real const &x) const
Real rand() const
Generate a pseudo Logistic random variate.
Real scale_
The scale parameter.
Logistic(Real const &mu=0., Real const &scale=1.)
Constructor.
Real mu_
The mu parameter.
void setScale(Real const &scale)
Real const & scale() const
virtual Real icdf(Real const &p) const
Compute the inverse cumulative distribution function at p of the standard logistic distribution.
virtual ~Logistic()
Destructor.
void setMu(Real const &mu)
virtual Real cdf(Real const &t) const
Compute the cumulative distribution function at t of the standard logistic distribution.
virtual Real lpdf(Real const &x) const
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.