Gymbo

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

Represents a bernoulli distribution derived from DiscreteDist. More...

`#include <type.h>`

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

## Public Member Functions
| BernoulliDist (float p)
Public Member Functions inherited from gymbo::DiscreteDist
| DiscreteDist ()
| Default constructor for DiscreteDist. More...

## Public Attributes
float | p
Public Attributes inherited from gymbo::DiscreteDist
std::vector< int > | vals
std::vector< float > | probs

## Detailed Description

Represents a bernoulli distribution derived from DiscreteDist.

## Constructor & Destructor Documentation

## ◆ BernoulliDist()

gymbo::BernoulliDist::BernoulliDist | ( | float | p | ) |
| inline

## Member Data Documentation

## ◆ p

float gymbo::BernoulliDist::p

The probability of occurrance

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

- libgymbo/type.h