127 return (
fB+dx*(2*
fC+3*
fD*dx));
173 return (
fB+dx*(2*
fC+dx*(3*
fD+dx*(4*
fE+dx*(5*
fF)))));
184 TSplinePoly(other), fB(0), fC(0), fD(0), fE(0), fF(0)
218 const TF1 *func,
Int_t n,
const char *opt=0,
221 const TGraph *
g,
const char *opt=0,
236 virtual void SaveAs(
const char *filename,
Option_t *option=
"")
const;
254 const char *&cb1,
const char *&ce1,
const char *&cb2,
257 const char *cb1,
const char *ce1,
const char *cb2,
299 virtual void SaveAs(
const char *filename,
Option_t *option=
"")
const;
#define ClassDef(name, id)
Fill Area Attributes class.
A Graph is a graphics object made of two arrays X and Y with npoints each.
1-D histogram with a float per channel (see TH1 documentation)}
The TNamed class is the base class for all named ROOT classes.
Mother of all ROOT objects.
Class to create third splines to interpolate knots Arbitrary conditions can be introduced for first a...
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
Int_t FindX(Double_t x) const
Find X.
void GetKnot(Int_t i, Double_t &x, Double_t &y) const
static void Test()
Test method for TSpline5.
virtual void SaveAs(const char *filename, Option_t *option="") const
Write this spline as a C++ function that can be executed without ROOT the name of the function is the...
void SetCond(const char *opt)
Check the boundary conditions.
Double_t Derivative(Double_t x) const
Derivative.
TSpline3 & operator=(const TSpline3 &)
Assignment operator.
Double_t Eval(Double_t x) const
Eval this spline at x.
virtual void SetPoint(Int_t i, Double_t x, Double_t y)
Set point number i.
void BuildCoeff()
Build coefficients.
void GetCoeff(Int_t i, Double_t &x, Double_t &y, Double_t &b, Double_t &c, Double_t &d)
virtual void SetPointCoeff(Int_t i, Double_t b, Double_t c, Double_t d)
Set point coefficient number i.
Class to create quintic natural splines to interpolate knots Arbitrary conditions can be introduced f...
static void Test()
Test method for TSpline5.
void GetCoeff(Int_t i, Double_t &x, Double_t &y, Double_t &b, Double_t &c, Double_t &d, Double_t &e, Double_t &f)
virtual void SaveAs(const char *filename, Option_t *option="") const
Write this spline as a C++ function that can be executed without ROOT the name of the function is the...
void GetKnot(Int_t i, Double_t &x, Double_t &y) const
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
virtual void SetPointCoeff(Int_t i, Double_t b, Double_t c, Double_t d, Double_t e, Double_t f)
Set point coefficient number i.
Double_t Derivative(Double_t x) const
Derivative.
Double_t Eval(Double_t x) const
Eval this spline at x.
void BoundaryConditions(const char *opt, Int_t &beg, Int_t &end, const char *&cb1, const char *&ce1, const char *&cb2, const char *&ce2)
Check the boundary conditions and the amount of extra double knots needed.
void BuildCoeff()
Algorithm 600, collected algorithms from acm.
void SetBoundaries(Double_t b1, Double_t e1, Double_t b2, Double_t e2, const char *cb1, const char *ce1, const char *cb2, const char *ce2)
Set the boundary conditions at double/triple knots.
Int_t FindX(Double_t x) const
Find X.
virtual void SetPoint(Int_t i, Double_t x, Double_t y)
Set point number i.
TSpline5 & operator=(const TSpline5 &)
Assignment operator.
TSplinePoly3(Double_t x, Double_t y, Double_t b, Double_t c, Double_t d)
Double_t Derivative(Double_t x) const
Double_t Eval(Double_t x) const
void CopyPoly(TSplinePoly3 const &other)
Utility called by the copy constructors and = operator.
TSplinePoly3 & operator=(TSplinePoly3 const &other)
Assignment operator.
void CopyPoly(TSplinePoly5 const &other)
Utility called by the copy constructors and = operator.
TSplinePoly5 & operator=(TSplinePoly5 const &other)
Assignment operator.
Double_t Derivative(Double_t x) const
Double_t Eval(Double_t x) const
TSplinePoly5(Double_t x, Double_t y, Double_t b, Double_t c, Double_t d, Double_t e, Double_t f)
Base class for TSpline knot.
virtual Double_t Eval(Double_t) const
void CopyPoly(TSplinePoly const &other)
Utility called by the copy constructors and = operator.
TSplinePoly & operator=(TSplinePoly const &other)
Assignment operator.
void GetKnot(Double_t &x, Double_t &y) const
TSplinePoly(Double_t x, Double_t y)
Base class for spline implementation containing the Draw/Paint methods.
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
virtual Double_t Eval(Double_t x) const =0
TH1F * GetHistogram() const
virtual void Draw(Option_t *option="")
Draw this function with its current attributes.
virtual void GetKnot(Int_t i, Double_t &x, Double_t &y) const =0
TSpline & operator=(const TSpline &)
Assignment operator.
virtual Int_t GetNpx() const
virtual void Paint(Option_t *option="")
Paint this function with its current attributes.
virtual Int_t GetNp() const
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to a spline.
virtual ~TSpline()
Destructor.
virtual void BuildCoeff()=0
TSpline(const char *title, Double_t delta, Double_t xmin, Double_t xmax, Int_t np, Bool_t step)
virtual Double_t GetXmin() const
virtual Double_t GetDelta() const
virtual Double_t GetXmax() const
virtual void SaveAs(const char *, Option_t *) const
Save this object in the file specified by filename.