File tree Expand file tree Collapse file tree 1 file changed +23
-23
lines changed
Expand file tree Collapse file tree 1 file changed +23
-23
lines changed Original file line number Diff line number Diff line change @@ -14,30 +14,30 @@ Generates a Bernoulli distribution.
1414
1515``` cpp
1616class bernoulli_distribution
17- {
17+ {
1818public:
19- // types
20- typedef bool result_type;
21- struct param_type;
22-
23- // constructors and reset functions
24- explicit bernoulli_distribution(double p = 0.5);
25- explicit bernoulli_distribution(const param_type& parm);
26- void reset();
27-
28- // generating functions
29- template <class URNG >
30- result_type operator()(URNG& gen);
31- template <class URNG >
32- result_type operator()(URNG& gen, const param_type& parm);
33-
34- // property functions
35- double p() const;
36- param_type param() const;
37- void param(const param_type& parm);
38- result_type min() const;
39- result_type max() const;
40- };
19+ // types
20+ typedef bool result_type;
21+ struct param_type;
22+
23+ // constructors and reset functions
24+ explicit bernoulli_distribution(double p = 0.5);
25+ explicit bernoulli_distribution(const param_type& parm);
26+ void reset();
27+
28+ // generating functions
29+ template <class URNG>
30+ result_type operator()(URNG& gen);
31+ template <class URNG>
32+ result_type operator()(URNG& gen, const param_type& parm);
33+
34+ // property functions
35+ double p() const;
36+ param_type param() const;
37+ void param(const param_type& parm);
38+ result_type min() const;
39+ result_type max() const;
40+ };
4141```
4242
4343### Parameters
You can’t perform that action at this time.
0 commit comments