69 if (ibin < 0 ) ibin = 0;
70 if (ibin >= nbin) ibin = nbin - 1;
73 if ((x >
fGraph->
GetX()[ibin] && ibin != nbin-1) || ibin == 0)
virtual Double_t Eval(Double_t x) const
returns linearly interpolated TGraph entry around x
virtual void SetNameTitle(const char *name, const char *title)
Set all the TNamed parameters (name and title).
virtual void GetKnot(Int_t i, Double_t &x, Double_t &y) const
no knots
Linear interpolation of TGraph.
virtual void BuildCoeff(void)
no coefficients to precompute
A Graph is a graphics object made of two arrays X and Y with npoints each.
virtual ~TSpline1(void)
destructor
Long64_t BinarySearch(Long64_t n, const T *array, T value)
Binary search in an array of n values to locate value.
TSpline1(const TString &title, TGraph *theGraph)
constructor from TGraph TSpline is a TNamed object