46 SetNameTitle( title, title );
65 Int_t nbin = fGraph->GetN();
68 if (ibin < 0 ) ibin = 0;
69 if (ibin >= nbin) ibin = nbin - 1;
72 if ((x > fGraph->GetX()[ibin] && ibin != nbin-1) || ibin == 0)
78 Double_t dx = fGraph->GetX()[ibin] - fGraph->GetX()[nextbin];
79 Double_t dy = fGraph->GetY()[ibin] - fGraph->GetY()[nextbin];
80 return fGraph->GetY()[ibin] + (x - fGraph->GetX()[ibin]) * dy/dx;
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
Abstract ClassifierFactory template that handles arbitrary types.
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