From Jason Turner

[rand.dist.pois.extreme]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpbiisa3t2/{from.md → to.md} +9 -12
tmp/tmpbiisa3t2/{from.md → to.md} RENAMED
@@ -1,27 +1,24 @@
1
  ##### Class template `extreme_value_distribution` <a id="rand.dist.pois.extreme">[[rand.dist.pois.extreme]]</a>
2
 
3
  An `extreme_value_distribution` random number distribution produces
4
  random numbers x distributed according to the probability density
5
- function[^6] $$%
6
- p(x\,|\,a,b)
7
- = \frac{1}{b}
8
- \cdot \exp\left( \frac{a-x}{b}
9
- \,-\, \exp\left(\frac{a-x}{b}\right)
10
- \right)
11
- \; \mbox{.}$$
12
 
13
  ``` cpp
14
  template<class RealType = double>
15
  class extreme_value_distribution {
16
  public:
17
  // types
18
  using result_type = RealType;
19
  using param_type = unspecified;
20
 
21
  // constructor and reset functions
22
- explicit extreme_value_distribution(RealType a = 0.0, RealType b = 1.0);
 
23
  explicit extreme_value_distribution(const param_type& parm);
24
  void reset();
25
 
26
  // generating functions
27
  template<class URBG>
@@ -38,17 +35,17 @@ template<class RealType = double>
38
  result_type max() const;
39
  };
40
  ```
41
 
42
  ``` cpp
43
- explicit extreme_value_distribution(RealType a = 0.0, RealType b = 1.0);
44
  ```
45
 
46
- *Requires:* 0 < `b`.
47
 
48
- *Effects:* Constructs an `extreme_value_distribution` object; `a` and
49
- `b` correspond to the respective parameters of the distribution.
50
 
51
  ``` cpp
52
  RealType a() const;
53
  ```
54
 
 
1
  ##### Class template `extreme_value_distribution` <a id="rand.dist.pois.extreme">[[rand.dist.pois.extreme]]</a>
2
 
3
  An `extreme_value_distribution` random number distribution produces
4
  random numbers x distributed according to the probability density
5
+ function[^6] $$p(x\,|\,a,b) = \frac{1}{b}
6
+ \cdot \exp\left(\frac{a-x}{b} - \exp\left(\frac{a-x}{b}\right)\right)
7
+ \text{ .}$$
 
 
 
 
8
 
9
  ``` cpp
10
  template<class RealType = double>
11
  class extreme_value_distribution {
12
  public:
13
  // types
14
  using result_type = RealType;
15
  using param_type = unspecified;
16
 
17
  // constructor and reset functions
18
+ extreme_value_distribution() : extreme_value_distribution(0.0) {}
19
+ explicit extreme_value_distribution(RealType a, RealType b = 1.0);
20
  explicit extreme_value_distribution(const param_type& parm);
21
  void reset();
22
 
23
  // generating functions
24
  template<class URBG>
 
35
  result_type max() const;
36
  };
37
  ```
38
 
39
  ``` cpp
40
+ explicit extreme_value_distribution(RealType a, RealType b = 1.0);
41
  ```
42
 
43
+ *Preconditions:* 0 < `b`.
44
 
45
+ *Remarks:* `a` and `b` correspond to the respective parameters of the
46
+ distribution.
47
 
48
  ``` cpp
49
  RealType a() const;
50
  ```
51