# Facing Problem while fitting

**URL:** <https://root-forum.cern.ch/t/facing-problem-while-fitting/38305>\
**Category:** ROOT\
**Tags:** hist\
**Created:** [March 7, 2020, 6:25am UTC](https://root-forum.cern.ch/t/facing-problem-while-fitting/38305 "2020-03-07T06:25:29Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [March 8, 2020, 8:17am UTC](https://root-forum.cern.ch/t/facing-problem-while-fitting/38305/22 "2020-03-08T08:17:15Z")

</div>

You need to estimate initial function’s parameters looking at the spectrum, e.g. ([estimated\_sigma = estimated\_fwhm / 2.35](https://en.wikipedia.org/wiki/Full_width_at_half_maximum)): [estimated\_area = 2.51 \* estimated\_height \* estimated\_sigma = 1.06 \* estimated\_height \* estimated\_fwhm](https://en.wikipedia.org/wiki/Gaussian_function)

---

_[View the full topic](https://root-forum.cern.ch/t/facing-problem-while-fitting/38305)._
