Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
salbert83 committed Apr 21, 2021
1 parent 6b1da51 commit 059a237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/univariate/continuous/laplace.jl
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function fit_mle(::Type{<:Laplace}, x::AbstractArray{T}) where {T<:Real}
θ += abs(v - μ)
end
θ /= length(x)
return Laplace(μ, mean(abs.(x .- μ)))
return Laplace(μ, θ)
end

function fit_mle(::Type{<:Laplace}, x::AbstractArray{T}, w::AbstractArray{T}) where {T <: Real}
Expand Down

0 comments on commit 059a237

Please sign in to comment.