Obtaining an envelope curve

Hi,

Is there a straightforward way for performing a fit in order to get the envelope of a distribution?

I’m specifically thinking of a Gaussian envelope on a TH1, so not really sophisticated.

Thanks,
Eleni

PS: For good measure, I’m also posting the same question to RooFit.

Hi,

What do you mean the “envelope of a distribution” ?

If you want to get the parameter of a distribution from an histogram, just do for example (“gaussian case”):

h1->Fit(“gaus”)

Lorenzo

Maybe I should have written “the envelope of the data”.

Here is a naive example of an envelope curve from google:

Please note that my data is not as fluctuating or as harmonic as in this example, so it’s not about decomposition etc. I just wonder if I can obtain a Gaussian which will encompass my histogram. (Simple fitting does not do this job.)

Regards,
Eleni

Hi,

We don;t have then such feature in ROOT. You would need to build something yourself wch create for example another histogram or graph with data points summarizing your data
and then you can fit those with ROOT

Cheers

Lorenzo

Thanks for the answer! It saves me from further searching, also it’s a nice idea to “summarize” with some of the points and see what happens with a fit.

Thanks,
Eleni

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.