From Jason Turner

[rand.dist.bern.bernoulli]

Diff to HTML by rtfpessoa

tmp/tmpqsosy_bm/{from.md → to.md} RENAMED
@@ -8,27 +8,26 @@ values b distributed according to the discrete probability function $$%
8
  1-p & \mbox{if} & b = \tcode{false}
9
  \end{array}\right.
10
  \; \mbox{.}$$
11
 
12
  ``` cpp
13
- class bernoulli_distribution
14
- {
15
  public:
16
  // types
17
- typedef bool result_type;
18
- typedef unspecified param_type;
19
 
20
  // constructors and reset functions
21
  explicit bernoulli_distribution(double p = 0.5);
22
  explicit bernoulli_distribution(const param_type& parm);
23
  void reset();
24
 
25
  // generating functions
26
- template<class URNG>
27
- result_type operator()(URNG& g);
28
- template<class URNG>
29
- result_type operator()(URNG& g, const param_type& parm);
30
 
31
  // property functions
32
  double p() const;
33
  param_type param() const;
34
  void param(const param_type& parm);
 
8
  1-p & \mbox{if} & b = \tcode{false}
9
  \end{array}\right.
10
  \; \mbox{.}$$
11
 
12
  ``` cpp
13
+ class bernoulli_distribution {
 
14
  public:
15
  // types
16
+ using result_type = bool;
17
+ using param_type = unspecified;
18
 
19
  // constructors and reset functions
20
  explicit bernoulli_distribution(double p = 0.5);
21
  explicit bernoulli_distribution(const param_type& parm);
22
  void reset();
23
 
24
  // generating functions
25
+ template<class URBG>
26
+ result_type operator()(URBG& g);
27
+ template<class URBG>
28
+ result_type operator()(URBG& g, const param_type& parm);
29
 
30
  // property functions
31
  double p() const;
32
  param_type param() const;
33
  void param(const param_type& parm);