1#include "KVSpiderLine.h"
19 _line->SetName(GetName());
21 _iline->SetName(
Form(
"I%s", GetName()));
28 _nAcceptedPoints = 100000;
217 double xtest =
GetX();
219 double ytest =
GetY();
227 if (
min <= 0.)
min += 10.;
243 if ((
min <= fmin) || (
max >= fmax)) {
270 if (dy_ > 0.) dy = dy_;
276 double yext = locf->
Eval(x_);
296 double dist =
TMath::Sqrt((xx - ox) * (xx - ox) + (yy - oy) * (yy - oy));
341 if ((n_ <= _line->
GetN() - 1) && (n_ >= 0))
n = n_;
343 cout <<
"WARNING: KVSpiderLine::GetX(): Invalid index n = '" << n_ <<
"'." << endl;
368 if ((n_ <= _line->
GetN() - 1) && (n_ >= 0))
n = n_;
370 cout <<
"WARNING: KVSpiderLine::GetY(): Invalid index n = '" << n_ <<
"'." << endl;
396 if ((n_ <= _iline->
GetN() - 1) && (n_ >= 0))
n = n_;
398 cout <<
"WARNING: KVSpiderLine::GetInterpolateX(): Invalid index n = '" << n_ <<
"'." << endl;
423 if ((n_ <= _iline->
GetN() - 1) && (n_ >= 0))
n = n_;
425 cout <<
"WARNING: KVSpiderLine::GetX(): Invalid index n = '" << n_ <<
"'." << endl;
443 if (opt.
Contains(
"same")) com +=
"same";
char * Form(const char *fmt,...)
Part of Spider Identification.
void Sort(bool ascending_=true)
bool ReplaceLastPoint(double x_, double y_)
void Draw(Option_t *opt_="")
double GetInterpolateX() const
virtual bool TestPoint(double x_, double y_, double dy_=-1., bool fit=true)
int GetInterpolateN() const
double GetDistance(double x_, double y_)
bool AddInterpolatePoint(double x_, double y_, bool test_=false, int n_=-1)
bool AddPoint(double x_, double y_, bool test_=false, int n_=-1)
virtual TF1 * GetFunction(double min_=-1., double max_=-1.)
void SetStatus(bool filled_=true)
double GetInterpolateY() const
virtual void SetLineWidth(Width_t lwidth)
virtual void SetLineColor(Color_t lcolor)
virtual void SetMarkerColor(Color_t mcolor=1)
virtual void SetMarkerStyle(Style_t mstyle=1)
virtual void SetMarkerSize(Size_t msize=1)
virtual void SetTextSize(Float_t tsize=1)
virtual void SetRange(Double_t xmin, Double_t xmax)
virtual void GetRange(Double_t &xmin, Double_t &xmax) const
virtual void SetParameters(const Double_t *params)
virtual Double_t Eval(Double_t x, Double_t y=0, Double_t z=0, Double_t t=0) const
virtual void SetPoint(Int_t i, Double_t x, Double_t y)
static Bool_t CompareX(const TGraph *gr, Int_t left, Int_t right)
virtual TFitResultPtr Fit(const char *formula, Option_t *option="", Option_t *goption="", Axis_t xmin=0, Axis_t xmax=0)
virtual void Sort(Bool_t(*greater)(const TGraph *, Int_t, Int_t)=&TGraph::CompareX, Bool_t ascending=kTRUE, Int_t low=0, Int_t high=-1111)
virtual void Apply(TF1 *f)
void SetName(const char *name="") override
void Draw(Option_t *chopt="") override
const char * GetName() const override
virtual void SetName(const char *name)
virtual void Draw(Option_t *option="")
const char * Data() const
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
TString & ReplaceAll(const char *s1, const char *s2)
fit(model, train_loader, val_loader, num_epochs, batch_size, optimizer, criterion, save_best, scheduler)
double dist(AxisAngle const &r1, AxisAngle const &r2)
double min(double x, double y)
double max(double x, double y)
Double_t Power(Double_t x, Double_t y)
Double_t Sqrt(Double_t x)