Gymbo

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

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

`#include <type.h>`

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

## Public Member Functions
| BinomialDist (int n, float p)
Public Member Functions inherited from gymbo::DiscreteDist
| DiscreteDist ()
| Default constructor for DiscreteDist. More...

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

## Detailed Description

Represents a binomial distribution derived from DiscreteDist.

## Constructor & Destructor Documentation

## ◆ BinomialDist()

gymbo::BinomialDist::BinomialDist | ( | int | n,
|  | float | p
| ) |  |
| inline

The probability of occurrance

## Member Data Documentation

## ◆ n

int gymbo::BinomialDist::n

## ◆ p

float gymbo::BinomialDist::p

The number of trial

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

- libgymbo/type.h