Skip to content

Feature request: fit(Weibull, rand(100)) #702

@TeroFrondelius

Description

@TeroFrondelius

Hi,
This is a newbie question, thus I might ask in the wrong repo or wrong place in general.

julia> fit(Normal, rand(100))
Distributions.Normal{Float64}=0.5084961617475308, σ=0.2908609425853258)

julia> fit(Weibull, rand(100))
ERROR: suffstats is not implemented for (Distributions.Weibull, Array{Float64,1}).
Stacktrace:
 [1] suffstats(::Type{Distributions.Weibull}, ::Array{Float64,1}) at C:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\Users\tfr004\AppData\Local\JuliaPro-0.6.1.1\pkgs-0.6.1.1\v0.6\Distributions\src\genericfit.jl:5
 [2] fit(::Type{Distributions.Weibull}, ::Array{Float64,1}) at C:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\Users\tfr004\AppData\Local\JuliaPro-0.6.1.1\pkgs-0.6.1.1\v0.6\Distributions\src\genericfit.jl:33

julia>

I am porting a Matlab project to Julia. In Matlab they used histfit(data,nbins,'weibull') function. I am actually looking something to replace the histfit function and found Julia fit. Any help is appreciated.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions