#include <SUniformDist.h>
Inherits SProbabilityDist.
Inheritance diagram for SUniformDist:
Public Types | |
enum | Type { CONST, UNIFORM, GEOMETRIC, BINOMIAL, POISSON, EXPONENTIAL, BURSTY, SELFSIMILAR, NORMAL, PARETO } |
Public Methods | |
SUniformDist (double left, double right) | |
SUniformDist (const SUniformDist &rU) | |
virtual double | getValue () |
virtual Type | getType () const |
virtual double | getExpectation () const |
double | getLower () const |
double | getUpper () const |
void | setBounds (const double &left, const double &right) |
Protected Attributes | |
double | _l |
double | _r |
Static Protected Attributes | |
leda_random_source | _rndSrc |
|
Type of probability distribution: (CONST states that result is always the same, i.e. constant) |
|
Constructor. Precondition: left <= right
|
|
Copy constructor |
|
Implements SProbabilityDist. |
|
|
|
Get type of probability distribution
Implements SProbabilityDist. |
|
|
|
Get a value from the interval [left, right]
Implements SProbabilityDist. |
|
|
|
the boundaries of the sample interval |
|
|
|
|