37#include "../include/STK_Law_Uniform.h"
60 if ((x <
a_)||(x >
b_))
return 0.;
81 if (
t <=
a_)
return 0.;
82 if (
t >=
b_)
return 1.;
95 if ((
p > 1.) || (
p < 0.))
99 if (
p == 1.)
return b_;
100 if (
p == 0.)
return a_;
110 return( (
b-
a <= 1.) ?
a + (
b-
a) * generator.randUnif()
111 :
a + generator.rand(
b-
a));
120 if ((x <
a)||(x >
b))
return 0.;
131 return -std::log(
b-
a);
135{
return (
b -
t)/(
b-
a);}
139{
return std::max(
a,std::min((1.-
p) *
a +
p *
b,
b));}
#define STKDOMAIN_ERROR_1ARG(Where, Arg, Error)
virtual Real icdf(Real const &p) const
The inverse cumulative distribution function is.
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.
Arithmetic properties of STK fundamental types.