Distributions.jl icon indicating copy to clipboard operation
Distributions.jl copied to clipboard

Feature Request: Fit truncated normal

Open azev77 opened this issue 5 years ago • 2 comments

using Distributions
xs = rand(LogNormal(), 100)
fit(Normal, xs)

fit(truncated(Normal, lb, ub), xs)  #ERROR. Want: (mu, sigma, lb, ub) 
fit(truncated(Normal, 0., ub), xs)  #ERROR. Want: (mu, sigma, ub) 
fit(truncated(Normal, 0, Inf), xs)  #ERROR. Want: (mu, sigma) 

azev77 avatar May 05 '20 20:05 azev77

I would also enjoy this feature

adienes avatar May 15 '23 03:05 adienes

Same here

pranshumalik14 avatar Aug 26 '23 17:08 pranshumalik14