Example illustrating how to fit a 2-d histogram of type y=f(x)
Processing /mnt/build/workspace/root-makedoc-v610/rootspi/rdoc/src/v6-10-00-patches/tutorials/fit/fit2d.C...
****************************************
Minimizer is Linear
Chi2 = 4501.58
NDf = 33
p0 = -0.47055 +/- 0.00713644
p1 = 10.8033 +/- 0.0124078
void fit2d()
{
Float_t x[
n] = {0.092,0.83,0.94,0.81,0.12,0.1};
TH2F *h2 =
new TH2F(
"h2",
"h2",40,0,1,40,0,10);
for (
Int_t i=0;i<100000;i++) {
}
}
- Author
- Rene Brun
Definition in file fit2d.C.