geometric_distribution::param_type
Stores the parameters of the distribution.
struct param_type {
typedef geometric_distribution<IntType, RealType> distribution_type;
param_type(RealType p = 0.5);
RealType p() const;
.....
bool operator==(const param_type& right) const;
bool operator!=(const param_type& right) const;
};
Parameters
See parent topic geometric_distribution Class.
Remarks
**Precondition:**0.0 < p && p < 1.0
This structure can be passed to the distribution's class constructor at instantiation, to the param() member function to set the stored parameters of an existing distribution, and to operator() to be used in place of the stored parameters.
Requirements
Header: <random>
Namespace: std