Skip to content

Commit

Permalink
Update erlang.jl docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
theplatters authored Nov 14, 2024
1 parent aad64af commit 2851fc3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/univariate/continuous/erlang.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
"""
Erlang(α,θ)
Erlang(a=1,s=1)
The *Erlang distribution* is a special case of a [`Gamma`](@ref) distribution with integer shape parameter.
```math
f(x; a, s) = \\frac{x^{a-1} e^{-x/ s}}{(a-k)! s^a},
\\quad x > 0
```
```julia
Erlang() # Erlang distribution with unit shape and unit scale, i.e. Erlang(1, 1)
Erlang(a) # Erlang distribution with shape parameter a and unit scale, i.e. Erlang(a, 1)
Expand Down

0 comments on commit 2851fc3

Please sign in to comment.