38 TSpline() : fDelta(-1), fXmin(0), fXmax(0),
39 fNp(0), fKstep(
kFALSE), fHistogram(0), fGraph(0), fNpx(100) {}
43 fDelta(delta), fXmin(xmin),
44 fXmax(xmax), fNp(np), fKstep(step),
45 fHistogram(0), fGraph(0), fNpx(100) {}
112 fB(0), fC(0), fD(0) {}
123 return (
fY+dx*(fB+dx*(fC+dx*fD)));
127 return (fB+dx*(2*fC+3*fD*dx));
155 fB(0), fC(0), fD(0), fE(0), fF(0) {}
158 TSplinePoly(x,y), fB(b), fC(c), fD(d), fE(e), fF(f) {}
169 return (
fY+dx*(fB+dx*(fC+dx*(fD+dx*(fE+dx*fF)))));
173 return (fB+dx*(2*fC+dx*(3*fD+dx*(4*fE+dx*(5*fF)))));
201 void SetCond(
const char *opt);
205 fBegCond(-1), fEndCond(-1) {}
218 const TF1 *func,
Int_t n,
const char *opt=0,
221 const TGraph *g,
const char *opt=0,
233 b=fPoly[i].
B();c=fPoly[i].
C();d=fPoly[i].
D();}
235 {x=fPoly[i].
X(); y=fPoly[i].
Y();}
236 virtual void SaveAs(
const char *filename,
Option_t *option=
"")
const;
253 void BoundaryConditions(
const char *opt,
Int_t &beg,
Int_t &end,
254 const char *&cb1,
const char *&ce1,
const char *&cb2,
257 const char *cb1,
const char *ce1,
const char *cb2,
294 {x=fPoly[i].
X();y=fPoly[i].
Y();b=fPoly[i].
B();
295 c=fPoly[i].
C();d=fPoly[i].
D();
296 e=fPoly[i].
E();f=fPoly[i].
F();}
298 {x=fPoly[i].
X(); y=fPoly[i].
Y();}
299 virtual void SaveAs(
const char *filename,
Option_t *option=
"")
const;
TSplinePoly3(Double_t x, Double_t y, Double_t b, Double_t c, Double_t d)
TSplinePoly3 & operator=(TSplinePoly3 const &other)
Assignment operator.
TSplinePoly & operator=(TSplinePoly const &other)
Assignment operator.
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
void GetKnot(Double_t &x, Double_t &y) const
TSplinePoly(Double_t x, Double_t y)
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to a spline.
Base class for spline implementation containing the Draw/Paint methods.
void CopyPoly(TSplinePoly3 const &other)
Utility called by the copy constructors and = operator.
virtual Double_t GetXmax() const
tomato 1-D histogram with a float per channel (see TH1 documentation)}
virtual Double_t GetXmin() const
virtual Int_t GetNpx() const
Class to create third splines to interpolate knots Arbitrary conditions can be introduced for first a...
void GetKnot(Int_t i, Double_t &x, Double_t &y) const
virtual Double_t GetDelta() const
void GetKnot(Int_t i, Double_t &x, Double_t &y) const
TSplinePoly5(Double_t x, Double_t y, Double_t b, Double_t c, Double_t d, Double_t e, Double_t f)
Fill Area Attributes class.
#define ClassDef(name, id)
virtual void SaveAs(const char *filename="", Option_t *option="") const
Save this object in the file specified by filename.
The TNamed class is the base class for all named ROOT classes.
Base class for TSpline knot.
void CopyPoly(TSplinePoly const &other)
Utility called by the copy constructors and = operator.
TSpline & operator=(const TSpline &)
Assignment operator.
Double_t Derivative(Double_t x) const
TSplinePoly5 & operator=(TSplinePoly5 const &other)
Assignment operator.
Double_t Derivative(Double_t x) const
Double_t Eval(Double_t x) const
virtual void SaveAs(const char *, Option_t *) const
Save this object in the file specified by filename.
virtual Double_t Eval(Double_t x) const =0
virtual void GetKnot(Int_t i, Double_t &x, Double_t &y) const =0
virtual ~TSpline()
Destructor.
virtual Double_t Eval(Double_t) const
TSpline(const char *title, Double_t delta, Double_t xmin, Double_t xmax, Int_t np, Bool_t step)
virtual void Draw(Option_t *option="")
Draw this function with its current attributes.
double func(double *x, double *p)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
Mother of all ROOT objects.
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)
void GetCoeff(Int_t i, Double_t &x, Double_t &y, Double_t &b, Double_t &c, Double_t &d)
A Graph is a graphics object made of two arrays X and Y with npoints each.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
Class to create quintic natural splines to interpolate knots Arbitrary conditions can be introduced f...
virtual void Paint(Option_t *option="")
Paint this function with its current attributes.
void CopyPoly(TSplinePoly5 const &other)
Utility called by the copy constructors and = operator.
TH1F * GetHistogram() const
virtual Int_t GetNp() const
Double_t Eval(Double_t x) const
virtual void BuildCoeff()=0
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a primitive as a C++ statement(s) on output stream "out".