|
bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
|
Wrapper to std::normal_distribution to facilitate sampling multiple values, sampling with a given seed and computing the PDF value at a specific point. More...
#include <normal_dist.h>
Public Types | |
| typedef RealType | result_type |
Public Member Functions | |
| NormalDist () | |
| Constructor. | |
| NormalDist (result_type mu, result_type std=1.0) | |
| Constructor. | |
| result_type | pdf (result_type x) const |
| compute the value of the PDF at the given point | |
| result_type | sample () const |
| Sample from the distribution. | |
| result_type | sample (uint_t seed) const |
| Sample from the distribution. | |
| std::vector< result_type > | sample_many (uint_t size) const |
| sample from the distribution | |
| std::vector< result_type > | sample_many (uint_t size, uint_t seed) const |
| sample from the distribution | |
| result_type | mean () const |
| The mean value of the distribution. | |
| result_type | std () const |
| The STD of the distribution. | |
Wrapper to std::normal_distribution to facilitate sampling multiple values, sampling with a given seed and computing the PDF value at a specific point.
| typedef RealType bitrl::utils::maths::stats::NormalDist< RealType >::result_type |
\breif The return type every time we call pdf, sample
| bitrl::utils::maths::stats::NormalDist< RealType >::NormalDist | ( | ) |
Constructor.
|
explicit |
Constructor.
|
inline |
The mean value of the distribution.
| RealType bitrl::utils::maths::stats::NormalDist< RealType >::pdf | ( | result_type | x | ) | const |
compute the value of the PDF at the given point
| RealType bitrl::utils::maths::stats::NormalDist< RealType >::sample | ( | ) | const |
Sample from the distribution.
| RealType bitrl::utils::maths::stats::NormalDist< RealType >::sample | ( | uint_t | seed | ) | const |
Sample from the distribution.
| std::vector< RealType > bitrl::utils::maths::stats::NormalDist< RealType >::sample_many | ( | uint_t | size | ) | const |
sample from the distribution
| std::vector< RealType > bitrl::utils::maths::stats::NormalDist< RealType >::sample_many | ( | uint_t | size, |
| uint_t | seed | ||
| ) | const |
sample from the distribution
|
inline |
The STD of the distribution.