TH1->Fit "L" Option



Hello, I have a question on how the log likelihood fit for TH1→Fit works. How does ROOT calculate the likelihood function from the fit function? If I do h→Fit(“f“, “L“) how does ROOT calculate the log-likelihood function which needs to be maximized? Also, if necessary how can I change what ROOT uses as the likelihood function?

Thanks.

Check out the TH1 fitting doc:

and the links given there, especially the TH1::Fit method documentation, with the options and more details.

Thanks, I think this is what I needed. I already looked at the TH1 documentation before, but I somehow missed where they explain the loglikelihood algorithm.