Create a TGraphSmooth and show the usage of the interpolation function Approx. 
See the TGraphSmooth documentation
  
 
{
  grxy->SetMarkerStyle(21);
 
  grxy->SetMarkerSize(0.5);
 
  grin->SetMarkerSize(0.7);
 
}
 
void gr010_approx_smooth()
{
   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};
 
 
      {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};
 
 
   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");
 
 
 
}
 
int Int_t
Signed integer 4 bytes (int)
 
double Double_t
Double 8 bytes.
 
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 gr010_approx_smooth.C.