|
Gymbo
|
Represents a discrete uniform distribution derived from DiscreteDist. More...
#include <type.h>


Public Member Functions | |
| DiscreteUniformDist (int low, int high) | |
| Constructor for DiscreteUniformDist. More... | |
Public Member Functions inherited from gymbo::DiscreteDist | |
| DiscreteDist () | |
| Default constructor for DiscreteDist. More... | |
Public Attributes | |
| int | low |
| int | high |
Public Attributes inherited from gymbo::DiscreteDist | |
| std::vector< int > | vals |
| std::vector< float > | probs |
Represents a discrete uniform distribution derived from DiscreteDist.
|
inline |
Constructor for DiscreteUniformDist.
| low | The lower bound of the uniform distribution. |
| high | The upper bound of the uniform distribution. |
Initializes the distribution by populating vals with values from low to high (inclusive).
| int gymbo::DiscreteUniformDist::high |
The upper bound of the uniform distribution.
| int gymbo::DiscreteUniformDist::low |
The lower bound of the uniform distribution.