47 SetNameTitle( title, title );
66 Int_t nbin = fGraph->GetN();
69 if (ibin < 0 ) ibin = 0;
70 if (ibin >= nbin) ibin = nbin - 1;
73 if ((x > fGraph->GetX()[ibin] && ibin != nbin-1) || ibin == 0)
79 Double_t dx = fGraph->GetX()[ibin] - fGraph->GetX()[nextbin];
80 Double_t dy = fGraph->GetY()[ibin] - fGraph->GetY()[nextbin];
81 return fGraph->GetY()[ibin] + (x - fGraph->GetX()[ibin]) * dy/dx;
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
ClassImp(TMVA::TSpline1) TMVA
constructor from TGraph TSpline is a TNamed object
virtual Double_t Eval(Double_t x) const
returns linearly interpolated TGraph entry around x
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)
virtual void GetKnot(Int_t i, Double_t &x, Double_t &y) const
no knots