37#include "../include/STK_Law_UniformDiscrete.h"
50{
return a_ +
int(generator.rand(
double(
n_)));}
57 if ((x <
a_)||(x >
b_))
return 0.;
78 if (
t <=
a_)
return 0.;
79 if (
t >=
b_)
return 1.;
80 return (
b_ - (
int)
t)/
n_;
92 if ((
p > 1.) || (
p < 0.))
96 if (
p == 1.)
return b_;
97 if (
p == 0.)
return a_;
98 return(
int)((1.-
p) *
a_ +
p *
b_);
106{
return a +
int(generator.rand(
double(
b -
a +1)));}
115 if ((x <
a)||(x >
b))
return 0.;
127 return -std::log(
b-
a+1);
131{
return (
b -
t)/(
b-
a+1);}
135{
return (
int)((1.-
p) *
a +
p *
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.