18 TText *text5, *text3, *textn;
23 TF1 *
f=
new TF1(
"f",
"sin(x)*sin(x/10)",
24 a-0.05*(
b-
a),
b+0.05*(
b-
a));
31 gPad->GetRangeAxis(xx1,yy1,xx2,yy2);
34 line5=
new TLine(xx1+dx*0.3,yy1+dy*1.02,
35 xx1+dx*0.38,yy1+dy*1.02);
38 text5 =
new TText(xx1+dx*0.4,
39 yy1+dy*1.03,
"quintic spline");
42 line3=
new TLine(xx1+dx*0.67,yy1+dy*1.02,
43 xx1+dx*0.75,yy1+dy*1.02);
46 text3 =
new TText(xx1+dx*0.77,
47 yy1+dy*1.03,
"third spline");
50 textn =
new TText(xx1+dx*0.8,yy1+dy*0.91,
" ");
61 for(
Int_t nnp=2; nnp<=np; ++nnp) {
68 for (
Int_t i=0; i<nnp; ++i) {
75 if(spline5)
delete spline5;
76 spline5 =
new TSpline5(
"Test",xx,f,nnp,
"b1e1b2e2",
85 spline5->
Draw(
"lcsame");
88 if(spline3)
delete spline3;
89 spline3 =
new TSpline3(
"Test",xx,yy,nnp,
"b1e1",
99 spline3->
Draw(
"lcpsame");
101 sprintf(text,
"%3d knots",nnp);
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void Draw(Option_t *option="")
Draw this function with its current attributes.
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
Class to create third splines to interpolate knots Arbitrary conditions can be introduced for first a...
virtual Double_t Derivative(Double_t x, Double_t *params=0, Double_t epsilon=0.001) const
Returns the first derivative of the function at point x, computed by Richardson's extrapolation metho...
virtual void Sleep(UInt_t milliSec)
Sleep milliSec milli seconds.
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
Base class for several text objects.
virtual void SetTextAlign(Short_t align=11)
Set the text alignment.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
R__EXTERN TSystem * gSystem
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
virtual Double_t Eval(Double_t x, Double_t y=0, Double_t z=0, Double_t t=0) const
Evaluate this function.
virtual void Draw(Option_t *option="")
Draw this function with its current attributes.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
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 SetTextSize(Float_t tsize=1)
Set the text size.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.