|
OPTK
0.1.2
Toolkit for global optimisation algorithms
|
#include <types.hpp>
Public Member Functions | |
| lognormal (std::string n, double mu, double sigma) | |
| lognormal (std::string n, double mu, double sigma, pt t) | |
| double | sample () |
Public Member Functions inherited from sspace::normal | |
| normal (std::string n, double mu, double sigma) | |
| normal (std::string n, double mu, double sigma, pt t) | |
Public Member Functions inherited from sspace::param_t | |
| param_t (std::string n, pt t) | |
| virtual | ~param_t () |
| virtual pt | get_type () |
| virtual std::string | get_name () |
Additional Inherited Members | |
Public Attributes inherited from sspace::normal | |
| double | m_mu |
| double | m_sigma |
Protected Attributes inherited from sspace::normal | |
| std::random_device | rd |
| std::mt19937 | generator |
| std::normal_distribution< double > | dist |
A lognormal parameter follows a log-normal distribution. Implicitly it is constrained to take only positive real values.
| sspace::lognormal::lognormal | ( | std::string | n, |
| double | mu, | ||
| double | sigma | ||
| ) |
The constructor
| n | The name of this parameter |
| n | The mean of the normal distribution. |
| n | The standard deviation of the normal distribution. |
| sspace::lognormal::lognormal | ( | std::string | n, |
| double | mu, | ||
| double | sigma, | ||
| pt | t | ||
| ) |
The polymorphic constructor. Do not call.
|
virtual |
Draw values from the exponentiated normal distribution;
\[ p(x \vert \mu, \sigma ) = \exp \bigg(\mathcal{N}(x; \mu, \sigma)\bigg). \]
Reimplemented from sspace::normal.
Reimplemented in sspace::qlognormal.
1.8.13