From Jason Turner

[rand.dist.norm.normal]

Diff to HTML by rtfpessoa

tmp/tmpber_b5ra/{from.md → to.md} RENAMED
@@ -8,11 +8,11 @@ numbers x distributed according to the probability density function $$%
8
  % e^{-(x-\mu)^2 / (2\sigma^2)}
9
  \exp{\left(- \, \frac{(x - \mu)^2}
10
  {2 \sigma^2}
11
  \right)
12
  }
13
- \; \mbox{.}$$ The distribution parameters μ and σ are also known as this
14
  distribution’s *mean* and *standard deviation* .
15
 
16
  ``` cpp
17
  template<class RealType = double>
18
  class normal_distribution {
@@ -20,11 +20,12 @@ template<class RealType = double>
20
  // types
21
  using result_type = RealType;
22
  using param_type = unspecified;
23
 
24
  // constructors and reset functions
25
- explicit normal_distribution(RealType mean = 0.0, RealType stddev = 1.0);
 
26
  explicit normal_distribution(const param_type& parm);
27
  void reset();
28
 
29
  // generating functions
30
  template<class URBG>
@@ -41,17 +42,17 @@ template<class RealType = double>
41
  result_type max() const;
42
  };
43
  ```
44
 
45
  ``` cpp
46
- explicit normal_distribution(RealType mean = 0.0, RealType stddev = 1.0);
47
  ```
48
 
49
- *Requires:* 0 < `stddev`.
50
 
51
- *Effects:* Constructs a `normal_distribution` object; `mean` and
52
- `stddev` correspond to the respective parameters of the distribution.
53
 
54
  ``` cpp
55
  RealType mean() const;
56
  ```
57
 
 
8
  % e^{-(x-\mu)^2 / (2\sigma^2)}
9
  \exp{\left(- \, \frac{(x - \mu)^2}
10
  {2 \sigma^2}
11
  \right)
12
  }
13
+ \text{ .}$$ The distribution parameters μ and σ are also known as this
14
  distribution’s *mean* and *standard deviation* .
15
 
16
  ``` cpp
17
  template<class RealType = double>
18
  class normal_distribution {
 
20
  // types
21
  using result_type = RealType;
22
  using param_type = unspecified;
23
 
24
  // constructors and reset functions
25
+ normal_distribution() : normal_distribution(0.0) {}
26
+ explicit normal_distribution(RealType mean, RealType stddev = 1.0);
27
  explicit normal_distribution(const param_type& parm);
28
  void reset();
29
 
30
  // generating functions
31
  template<class URBG>
 
42
  result_type max() const;
43
  };
44
  ```
45
 
46
  ``` cpp
47
+ explicit normal_distribution(RealType mean, RealType stddev = 1.0);
48
  ```
49
 
50
+ *Preconditions:* 0 < `stddev`.
51
 
52
+ *Remarks:* `mean` and `stddev` correspond to the respective parameters
53
+ of the distribution.
54
 
55
  ``` cpp
56
  RealType mean() const;
57
  ```
58