Skip to content

Commit

Permalink
fix notation in laplace.jl docstring (#838)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffFessler authored and matbesancon committed Mar 6, 2019
1 parent fdfdbed commit 3b649f5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/univariate/continuous/laplace.jl
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
"""
Laplace(μ,θ)
Laplace(μ,β)
The *Laplace distribution* with location `μ` and scale `θ` has probability density function
The *Laplace distribution* with location `μ` and scale `β` has probability density function
```math
f(x; \\mu, \\beta) = \\frac{1}{2 \\beta} \\exp \\left(- \\frac{|x - \\mu|}{\\beta} \\right)
```
```julia
Laplace() # Laplace distribution with zero location and unit scale, i.e. Laplace(0, 1)
Laplace(u) # Laplace distribution with location u and unit scale, i.e. Laplace(u, 1)
Laplace(u, b) # Laplace distribution with location u ans scale b
Laplace(μ) # Laplace distribution with location μ and unit scale, i.e. Laplace(μ, 1)
Laplace(μ, β) # Laplace distribution with location μ and scale β
params(d) # Get the parameters, i.e. (u, b)
location(d) # Get the location parameter, i.e. u
scale(d) # Get the scale parameter, i.e. b
params(d) # Get the parameters, i.e., (μ, β)
location(d) # Get the location parameter, i.e. μ
scale(d) # Get the scale parameter, i.e. β
```
External links
Expand Down

0 comments on commit 3b649f5

Please sign in to comment.