Example illustrating how to fit a 2-d histogram of type y=f(x)
****************************************
Minimizer is Linear / Migrad
Chi2 = 4501.58
NDf = 33
p0 = -0.47055 +/- 0.00713644
p1 = 10.8033 +/- 0.0124078
void fit2d()
{
float x[
n] = {0.092,0.83,0.94,0.81,0.12,0.1};
float y[
n] = {0.71,9.4,9,8,0.3,0.71};
for (int i=0;i<100000;i++) {
}
}
R__EXTERN TRandom * gRandom
virtual Int_t IsInside(Double_t x, Double_t y) const
Return 1 if the point (x,y) is inside the polygon defined by the graph vertices 0 otherwise.
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.
2-D histogram with a float per channel (see TH1 documentation)
Double_t Rndm() override
Machine independent random number generator.
- Author
- Rene Brun
Definition in file fit2d.C.