From Jason Turner

[rand.dist.pois.exp]

Diff to HTML by rtfpessoa

tmp/tmpnd4uytqv/{from.md → to.md} RENAMED
@@ -7,27 +7,26 @@ $$%
7
  = \lambda e^{-\lambda x}
8
  \; \mbox{.}$$
9
 
10
  ``` cpp
11
  template<class RealType = double>
12
- class exponential_distribution
13
- {
14
  public:
15
  // types
16
- typedef RealType result_type;
17
- typedef unspecified param_type;
18
 
19
  // constructors and reset functions
20
  explicit exponential_distribution(RealType lambda = 1.0);
21
  explicit exponential_distribution(const param_type& parm);
22
  void reset();
23
 
24
  // generating functions
25
- template<class URNG>
26
- result_type operator()(URNG& g);
27
- template<class URNG>
28
- result_type operator()(URNG& g, const param_type& parm);
29
 
30
  // property functions
31
  RealType lambda() const;
32
  param_type param() const;
33
  void param(const param_type& parm);
@@ -40,11 +39,11 @@ public:
40
  explicit exponential_distribution(RealType lambda = 1.0);
41
  ```
42
 
43
  *Requires:* 0 < `lambda`.
44
 
45
- *Effects:* Constructs a `exponential_distribution` object; `lambda`
46
  corresponds to the parameter of the distribution.
47
 
48
  ``` cpp
49
  RealType lambda() const;
50
  ```
 
7
  = \lambda e^{-\lambda x}
8
  \; \mbox{.}$$
9
 
10
  ``` cpp
11
  template<class RealType = double>
12
+ class exponential_distribution {
 
13
  public:
14
  // types
15
+ using result_type = RealType;
16
+ using param_type = unspecified;
17
 
18
  // constructors and reset functions
19
  explicit exponential_distribution(RealType lambda = 1.0);
20
  explicit exponential_distribution(const param_type& parm);
21
  void reset();
22
 
23
  // generating functions
24
+ template<class URBG>
25
+ result_type operator()(URBG& g);
26
+ template<class URBG>
27
+ result_type operator()(URBG& g, const param_type& parm);
28
 
29
  // property functions
30
  RealType lambda() const;
31
  param_type param() const;
32
  void param(const param_type& parm);
 
39
  explicit exponential_distribution(RealType lambda = 1.0);
40
  ```
41
 
42
  *Requires:* 0 < `lambda`.
43
 
44
+ *Effects:* Constructs an `exponential_distribution` object; `lambda`
45
  corresponds to the parameter of the distribution.
46
 
47
  ``` cpp
48
  RealType lambda() const;
49
  ```