****************************************
Minimizer is Minuit / Migrad
Chi2 = 4.25425e+06
NDf = 398
Edm = 1.32198e-12
NCalls = 55
p0 = 0.574556 +/- 0.109982
p1 = 1.72367 +/- 0.329947
(TCanvas *) 0x55cdd50b27e0
{
TF2 *f2 =
new TF2(
"f2",
"1000*(([0]*sin(x)/x)*([1]*sin(y)/y))+200",
-fl,fl,-fl,fl);
if (z>zmax) zmax = z;
}
"#splitline{Difference between Original}{#splitline{function and Function}{with noise}}",
100, -hr, hr);
"#splitline{Difference between Original}{#splitline{function and Delaunay triangles}{interpolation}}",
100, -hr, hr);
"#splitline{Difference between Original}{function and Minuit fit}",
500, -hr, hr);
}
f2->
SetTitle(
"Original function with Graph2D points on top");
dt->
SetTitle(
"Histogram produced with Delaunay interpolation");
fit2->
SetTitle(
"Minuit fit result on the Graph2D points");
c->cd(4); h2->
Fit(
"gaus",
"Q") ; h2->
Draw();
c->cd(6); h3->
Fit(
"gaus",
"Q") ; h3->
Draw();
}
R__EXTERN TStyle * gStyle
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void SetMaximum(Double_t maximum=-1111)
Set the maximum value along Y for this function In case the function is already drawn,...
virtual void SetTitle(const char *title="")
Set function title if title has the form "fffffff;xxxx;yyyy", it is assumed that the function title i...
virtual void SetParameters(const Double_t *params)
virtual Double_t Eval(Double_t x, Double_t y=0, Double_t z=0, Double_t t=0) const
Evaluate this function.
A 2-Dim function with parameters.
virtual void GetRandom2(Double_t &xrandom, Double_t &yrandom, TRandom *rng=nullptr)
Return 2 random numbers following this function shape.
virtual void Draw(Option_t *option="")
Draw this function with its current attributes.
Graphics object made of three arrays X, Y and Z with the same number of points each.
Double_t Interpolate(Double_t x, Double_t y)
Finds the z value at the position (x,y) thanks to the Delaunay interpolation.
virtual TFitResultPtr Fit(const char *formula, Option_t *option="", Option_t *goption="")
Fits this graph with function with name fname Predefined functions such as gaus, expo and poln are au...
virtual TObject * FindObject(const char *name) const
search object named name in the list of functions
void SetMargin(Double_t m=0.1)
Sets the extra space (in %) around interpolated area for the 2D histogram.
virtual void SetTitle(const char *title="")
Sets the 2D graph title.
virtual void SetPoint(Int_t point, Double_t x, Double_t y, Double_t z)
Sets point number n.
virtual void Draw(Option_t *option="P0")
Specific drawing options can be used to paint a TGraph2D:
1-D histogram with a double per channel (see TH1 documentation)}
virtual TFitResultPtr Fit(const char *formula, Option_t *option="", Option_t *goption="", Double_t xmin=0, Double_t xmax=0)
Fit histogram with function fname.
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
This is the base class for the ROOT Random number generators.
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
void SetHistTopMargin(Double_t hmax=0.05)
void SetOptFit(Int_t fit=1)
The type of information about fit parameters printed in the histogram statistics box can be selected ...