35#ifndef STK_LAW_UNIFORM_H
36#define STK_LAW_UNIFORM_H
80 inline Real const&
a()
const {
return a_;}
82 inline Real const&
b()
const {
return b_;}
182 GetRNGstate();
Real s = Rf_runif(
a,
b); PutRNGstate();
return s;
186{
return Rf_dunif(x,
a,
b,
false);}
188{
return Rf_dunif(x,
a,
b,
true);}
190{
return Rf_punif(t,
a,
b,
true,
false);}
192{
return Rf_qunif(p ,
a,
b,
true,
false);}
In this file we define the interface base class IUnivLaw for all probabilities laws.
#define STKINVALIDARGUMENT_ERROR_2ARG(Where, Arg1, Arg2, 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...
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.