From Jason Turner

[rand.dist.pois.exp]

Diff to HTML by rtfpessoa

tmp/tmpnmq0xucx/{from.md → to.md} RENAMED
@@ -1,24 +1,22 @@
1
  ##### Class template `exponential_distribution` <a id="rand.dist.pois.exp">[[rand.dist.pois.exp]]</a>
2
 
3
  An `exponential_distribution` random number distribution produces random
4
  numbers x > 0 distributed according to the probability density function
5
- $$%
6
- p(x\,|\,\lambda)
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>
@@ -34,17 +32,16 @@ template<class RealType = double>
34
  result_type max() const;
35
  };
36
  ```
37
 
38
  ``` cpp
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
  ```
50
 
 
1
  ##### Class template `exponential_distribution` <a id="rand.dist.pois.exp">[[rand.dist.pois.exp]]</a>
2
 
3
  An `exponential_distribution` random number distribution produces random
4
  numbers x > 0 distributed according to the probability density function
5
+ $$p(x\,|\,\lambda) = \lambda e^{-\lambda x} \text{ .}$$
 
 
 
6
 
7
  ``` cpp
8
  template<class RealType = double>
9
  class exponential_distribution {
10
  public:
11
  // types
12
  using result_type = RealType;
13
  using param_type = unspecified;
14
 
15
  // constructors and reset functions
16
+ exponential_distribution() : exponential_distribution(1.0) {}
17
+ explicit exponential_distribution(RealType lambda);
18
  explicit exponential_distribution(const param_type& parm);
19
  void reset();
20
 
21
  // generating functions
22
  template<class URBG>
 
32
  result_type max() const;
33
  };
34
  ```
35
 
36
  ``` cpp
37
+ explicit exponential_distribution(RealType lambda);
38
  ```
39
 
40
+ *Preconditions:* 0 < `lambda`.
41
 
42
+ *Remarks:* `lambda` corresponds to the parameter of the distribution.
 
43
 
44
  ``` cpp
45
  RealType lambda() const;
46
  ```
47