Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/pem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ represented by the vector of elements d.

Parameters
----------
- d :: Vector
- d :: Vector{<:Real}
Distribution under interest
- N :: Integer
Number of desired estimate points
Expand All @@ -88,7 +88,7 @@ Returns

"""
function pem(
d::Vector,
d::Vector{<:Real},
N::Integer;
mean_fun::Function=Distributions.mean,
central_moment_fun::Function=Distributions.moment,
Expand Down Expand Up @@ -118,9 +118,9 @@ This function is based on the methodology proposed by:

Parameters
----------
- mean_value
- mean_value :: Real
Mean value of the distribution
- m_list :: Dict
- m_list :: Dict{<:Integer, <:Real}
Dictionary representing the central moments of the distribution.
The keys of the dictionary shall go from 0 to N and the value corresponds to the value
of the moment.
Expand All @@ -140,8 +140,8 @@ Returns

"""
function pem(
mean_value,
m_list::Dict,
mean_value::Real,
m_list::Dict{<:Integer, <:Real},
N::Integer;
optimizer=DEFAULT_SOLVER,
)
Expand Down
Loading