Dear ROOT experts
I am trying to fit the a/x function in Python to the following histogram:
import ROOT %jsroot on h_sharers = ROOT.TH1F("Sharers","Sharers; Shares; Amount",102, 1, 103) for i in sorted_shared_dict: h_sharers.Fill(i) c = ROOT.TCanvas() h_sharers.SetFillColor(ROOT.kBlue-10) c.SetGrid() h_sharers.Draw() c.Draw()
Tried to do the e^-x, as this is the predefined function in the ROOT library, but found it hard to define my own fit for a/x. Do you have an idea how to do it (in Python, as I lack C/C++ skills)?
Many thanks in advance !