lognormal_distribution Class
Generates a log-normal distribution.
template<class RealType = double>
class lognormal_distribution {
public:
typedef RealType result_type;
struct param_type;
explicit lognormal_distribution(result_type m0 = result_type(0.0),
result_type s0 = result_type(1.0));
explicit lognormal_distribution(const param_type& par0);
result_type m() const;
result_type s() const;
param_type param() const;
void param(const param_type& par0);
result_type min() const;
result_type max() const;
void reset();
template<class Engine>
result_type operator()(Engine& eng);
template<class Engine>
result_type operator()(Engine& eng,
const param_type& par0);
private:
result_type stored_a;
result_type stored_b;
};
Parameters
Parameter |
Description |
---|---|
RealType |
The floating-point result type. |
Remarks
The template class describes a distribution that produces values of a user-specified floating-point type distributed with a log-normal distribution.
Requirements
Header: <random>
Namespace: std
See Also
Reference
lognormal_distribution::lognormal_distribution
lognormal_distribution::operator()
lognormal_distribution::param_type