35#ifndef STK_LAW_LOGNORMAL_H
36#define STK_LAW_LOGNORMAL_H
198GetRNGstate();
Real s = Rf_rlnorm(
mu,
sigma); PutRNGstate();
return s;
202{
return Rf_dlnorm(x,
mu,
sigma,
false);}
204{
return Rf_dlnorm(x,
mu,
sigma,
true);}
206{
return Rf_plnorm(t,
mu,
sigma,
true,
false);}
208{
return Rf_qlnorm(p,
mu,
sigma,
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.
This file include all the other header files of the project Sdk.
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...
LogNormal distribution law.
Real const & sigma() const
virtual Real cdf(Real const &t) const
Compute the cumulative distribution function at t of the standard log-normal distribution.
virtual ~LogNormal()
Destructor.
void setMu(Real const &mu)
Real mu_
The location parameter.
Real sigma_
The scale parameter.
virtual Real lpdf(Real const &x) const
void setSigma(Real const &sigma)
virtual Real icdf(Real const &p) const
Compute the inverse cumulative distribution function at p of the standard log-normal distribution.
LogNormal(Real const &mu=0., Real const &sigma=1.)
Constructor.
Real rand() const
Generate a pseudo log-normalized LogNormal random variate.
virtual Real pdf(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.