Macro to test interpolation function Approx
{
grxy->SetMarkerStyle(21);
grxy->SetMarkerSize(0.5);
grin->SetMarkerSize(0.7);
}
{
Double_t x[] = {1, 2, 3, 4, 5, 6, 6, 6, 8, 9, 10};
Double_t y[] = {1, 4, 9, 16, 25, 25, 36, 49, 64, 81, 100};
Double_t xout[] = {1.2, 1.7, 2.5, 3.2, 4.4, 5.2, 5.7, 6.5, 7.6, 8.3, 9.7, 10.4, 11.3, 13};
vC1 =
new TCanvas(
"vC1",
"square", 200, 10, 700, 700);
DrawSmooth(1,
"Approx: ties = mean",
"X-axis",
"Y-axis");
cout <<
"k= " << k <<
" vXout[k]= " <<
vXout <<
" vYout[k]= " <<
vYout << endl;
}
grout =
gs->Approx(
grin,
"constant", 50, 0, 0, 0, 1, 0.5,
"min");
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
A helper class to smooth TGraph.
A TGraph is an object made of two arrays X and Y with npoints each.
1-D histogram with a float per channel (see TH1 documentation)
- Author
- Christian Stratowa, Vienna, Austria.
Definition in file approx.C.