共用方式為


exponential_distribution::param_type

儲存分佈的參數。

struct param_type {     typedef exponential_distribution<RealType> distribution_type;     param_type(RealType lambda = 1.0);     RealType lambda() const;     .....     bool operator==(const param_type& right) const;     bool operator!=(const param_type& right) const; };

參數

See parent topic exponential_distribution 類別.

備註

前置條件: 0.0 < lambda

此結構可在具現化時傳遞至分佈的類別建構函式,傳遞至 param() 成員函式可設定現有分佈之儲存的參數,傳遞至 operator() 可用於取代儲存的參數。

需求

標頭:<random>

命名空間: std

請參閱

參考

<random>

exponential_distribution 類別