Gymbo

Public Member Functions | Public Attributes | List of all members
gymbo::DiscreteUniformDist Struct Reference

Represents a discrete uniform distribution derived from DiscreteDist. More...

`#include <type.h>`

Inheritance diagram for gymbo::DiscreteUniformDist:
[legend]
Collaboration diagram for gymbo::DiscreteUniformDist:
[legend]

## 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

## Detailed Description

Represents a discrete uniform distribution derived from DiscreteDist.

## Constructor & Destructor Documentation

## ◆ DiscreteUniformDist()

gymbo::DiscreteUniformDist::DiscreteUniformDist | ( | int | low,
|  | int | high
| ) |  |
| inline

Constructor for DiscreteUniformDist.

Parameters

  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).

## Member Data Documentation

## ◆ high

int gymbo::DiscreteUniformDist::high

The upper bound of the uniform distribution.

## ◆ low

int gymbo::DiscreteUniformDist::low

The lower bound of the uniform distribution.

The documentation for this struct was generated from the following file:

- libgymbo/type.h