# Sigmoid fit to efficiency plot

**URL:** <https://root-forum.cern.ch/t/sigmoid-fit-to-efficiency-plot/38512>\
**Category:** Newbie\
**Created:** [March 21, 2020, 10:59am UTC](https://root-forum.cern.ch/t/sigmoid-fit-to-efficiency-plot/38512 "2020-03-21T10:59:40Z")\
**Posts on this page:** 1\
**Showing post:** 10

<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 23, 2020, 12:02pm UTC](https://root-forum.cern.ch/t/sigmoid-fit-to-efficiency-plot/38512/10 "2020-03-23T12:02:34Z")

</div>

> [@Fit function uses initial parameter values](https://root-forum.cern.ch/t/fit-function-uses-initial-parameter-values/38516):
>
> ROOT Version: 6.18/04 Platform: Linux I defined a sigmoid function with 2 parameters (and set the initial parameter values). I am now trying to fit this function to a plot (called fun[1]), however my ‘fit’ always just takes my initial parameter values, even though that is definitely not the best fit. Most of the time I also get the message saying that STATUS = FAILED, a few times, however, I got STATUS = CONVERGED, but that result clearly wasn’t the best fit. I tried: TF1 \*sigm = new TF1("si…

---

_[View the full topic](https://root-forum.cern.ch/t/sigmoid-fit-to-efficiency-plot/38512)._
