Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ParadaCarleton authored Jul 7, 2023
1 parent c8d3e4b commit c3de005
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/univariate/continuous/beta.jl
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,8 @@ function rand(rng::AbstractRNG, d::Beta{T}) where T
end
end

#### Fit model
"""
fit_mle(::Type{<:Beta}, x::AbstractArray{T})

Maximum Likelihood Estimate of `Beta` Distribution via Newton's Method
"""

function fit_mle(::Type{<:Beta}, x::AbstractArray{T};
maxiter::Int=1000, tol::Float64=1e-14) where T<:Real

Expand All @@ -240,11 +236,8 @@ function fit_mle(::Type{<:Beta}, x::AbstractArray{T};
return Beta(θ[1], θ[2])
end

"""
fit(::Type{<:Beta}, x::AbstractArray{T})

fit a `Beta` distribution
"""

function fit(::Type{<:Beta}, x::AbstractArray{T}) where T<:Real
x_bar = mean(x)
v_bar = varm(x, x_bar)
Expand Down

0 comments on commit c3de005

Please sign in to comment.