Skip to content

Commit 687487b

Browse files
author
Colin Robertson
authored
Merge pull request #837 from Lorac/patch-2
fix precondition on normal distribution
2 parents 0699af8 + cfba6de commit 687487b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/standard-library/normal-distribution-class.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ The parameter structure used to construct the distribution.
181181
182182
### Remarks
183183
184-
**Precondition:** `0.0 stddev`
184+
**Precondition:** `0.0 < stddev`
185185
186186
The first constructor constructs an object whose stored `mean` value holds the value *mean* and whose stored `stddev` value holds the value *stddev*.
187187
@@ -216,7 +216,7 @@ The `param_type` structure used to compare.
216216

217217
### Remarks
218218

219-
**Precondition:** `0.0 stddev`
219+
**Precondition:** `0.0 < stddev`
220220

221221
This structure can be passed to the distribution's class constructor at instantiation, to the `param()` member function to set the stored parameters of an existing distribution, and to `operator()` to be used in place of the stored parameters.
222222

0 commit comments

Comments
 (0)