normal_distribution Class
Generates a normal distribution.
template<class RealType = double>
class normal_distribution {
public:
typedef RealType input_type;
typedef RealType result_type;
explicit normal_distribution(const result_type& mean0 = 0,
const result_type& sigma0 = 1);
result_type mean() const;
result_type sigma() const;
void reset();
template<class Engine>
result_type operator()(Engine& eng);
private:
result_type stored_mean; // exposition only
result_type stored_sigma; // exposition only
};
Parameters
- RealType
The floating-point distribution value type.
Remarks
The template class decribes a distribution that produces values of a user-specified floating-point type with a normal distribution.
Requirements
Header: <random>
Namespace: std::tr1