Skip to content

Commit 1fcfcb6

Browse files
committed
fix and clarify exp_mod_normal parameter names, fixes #429
1 parent 17d4097 commit 1fcfcb6

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/functions-reference/unbounded_continuous_distributions.qmd

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,8 @@ and scale `sigma` dropping constant additive terms.
380380

381381
## Exponentially modified normal distribution
382382

383+
Exponentially modified Gaussian describes the distribution of $Z = X + Y$ when $X$ and $Y$ are independent and $X$ is normally distributed (with mean $\mu$ and standard deviation $\sigma$) and $Y$ is exponentially distributed (with rate $\lambda$).
384+
383385
### Probability density function
384386

385387
If $\mu \in \mathbb{R}$, $\sigma \in \mathbb{R}^+$, and $\lambda \in
@@ -405,39 +407,39 @@ Increment target log probability density with `exp_mod_normal_lupdf(y | mu, sigm
405407

406408
`real` **`exp_mod_normal_lpdf`**`(reals y | reals mu, reals sigma, reals lambda)`<br>\newline
407409
The log of the exponentially modified normal density of y given
408-
location mu, scale sigma, and shape lambda
410+
location mu, scale sigma, and rate lambda
409411
{{< since 2.18 >}}
410412

411413
<!-- real; exp_mod_normal_lupdf; (reals y | reals mu, reals sigma, reals lambda); -->
412414
\index{{\tt \bfseries exp\_mod\_normal\_lupdf }!{\tt (reals y \textbar\ reals mu, reals sigma, reals lambda): real}|hyperpage}
413415

414416
`real` **`exp_mod_normal_lupdf`**`(reals y | reals mu, reals sigma, reals lambda)`<br>\newline
415417
The log of the exponentially modified normal density of y given
416-
location mu, scale sigma, and shape lambda dropping constant additive terms
418+
location mu, scale sigma, and rate lambda dropping constant additive terms
417419
{{< since 2.25 >}}
418420

419421
<!-- real; exp_mod_normal_cdf; (reals y | reals mu, reals sigma, reals lambda); -->
420422
\index{{\tt \bfseries exp\_mod\_normal\_cdf }!{\tt (reals y \textbar\ reals mu, reals sigma, reals lambda): real}|hyperpage}
421423

422424
`real` **`exp_mod_normal_cdf`**`(reals y | reals mu, reals sigma, reals lambda)`<br>\newline
423425
The exponentially modified normal cumulative distribution function of
424-
y given location mu, scale sigma, and shape lambda
426+
y given location mu, scale sigma, and rate lambda
425427
{{< since 2.0 >}}
426428

427429
<!-- real; exp_mod_normal_lcdf; (reals y | reals mu, reals sigma, reals lambda); -->
428430
\index{{\tt \bfseries exp\_mod\_normal\_lcdf }!{\tt (reals y \textbar\ reals mu, reals sigma, reals lambda): real}|hyperpage}
429431

430432
`real` **`exp_mod_normal_lcdf`**`(reals y | reals mu, reals sigma, reals lambda)`<br>\newline
431433
The log of the exponentially modified normal cumulative distribution
432-
function of y given location mu, scale sigma, and shape lambda
434+
function of y given location mu, scale sigma, and rate lambda
433435
{{< since 2.18 >}}
434436

435437
<!-- real; exp_mod_normal_lccdf; (reals y | reals mu, reals sigma, reals lambda); -->
436438
\index{{\tt \bfseries exp\_mod\_normal\_lccdf }!{\tt (reals y \textbar\ reals mu, reals sigma, reals lambda): real}|hyperpage}
437439

438440
`real` **`exp_mod_normal_lccdf`**`(reals y | reals mu, reals sigma, reals lambda)`<br>\newline
439441
The log of the exponentially modified normal complementary cumulative
440-
distribution function of y given location mu, scale sigma, and shape
442+
distribution function of y given location mu, scale sigma, and rate
441443
lambda
442444
{{< since 2.18 >}}
443445

@@ -446,7 +448,7 @@ lambda
446448

447449
`R` **`exp_mod_normal_rng`**`(reals mu, reals sigma, reals lambda)`<br>\newline
448450
Generate a exponentially modified normal variate with location mu,
449-
scale sigma, and shape lambda; may only be used in transformed data and generated
451+
scale sigma, and rate lambda; may only be used in transformed data and generated
450452
quantities blocks. For a description of argument and return types, see
451453
section [vectorized PRNG functions](conventions_for_probability_functions.qmd#prng-vectorization).
452454
{{< since 2.18 >}}

0 commit comments

Comments
 (0)