fitting using maximum likelihood [message #87624] |
Wed, 19 February 2014 05:57  |
Mel[1]
Messages: 1 Registered: February 2014
|
Junior Member |
|
|
Hello,
I need to fit a histogram with a gaussian using the maximum likelihood method.
Is there any routine that does this?
Thanks,
Mel
|
|
|
Re: fitting using maximum likelihood [message #87701 is a reply to message #87624] |
Sun, 23 February 2014 22:25  |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
On Wednesday, February 19, 2014 8:57:33 AM UTC-5, Mel wrote:
>
> I need to fit a histogram with a gaussian using the maximum likelihood method.
> Is there any routine that does this?
Least squares is a kind of maximum likelihood optimization. There are plenty of routines for that, like MPFITFUN or CURVEFIT.
I guess you mean you have your own likelihood function which is not least squares. There is no real ready-made IDL routines for that. You have to rely on general routines like CONSTRAINED_MIN, AMOEBA, etc.
Craig
|
|
|