TGraphSmooth Class Reference

#include <TGraphSmooth.h>

Inheritance diagram for TGraphSmooth:

TNamed TNamed TObject TObject TObject TObject List of all members.

Public Member Functions

 TGraphSmooth ()
 TGraphSmooth (const char *name)
virtual ~TGraphSmooth ()
TGraphApprox (TGraph *grin, Option_t *option="linear", Int_t nout=50, Double_t *xout=0, Double_t yleft=0, Double_t yright=0, Int_t rule=0, Double_t f=0, Option_t *ties="mean")
TGraphSmoothKern (TGraph *grin, Option_t *option="normal", Double_t bandwidth=0.5, Int_t nout=100, Double_t *xout=0)
TGraphSmoothLowess (TGraph *grin, Option_t *option="", Double_t span=0.67, Int_t iter=3, Double_t delta=0)
TGraphSmoothSuper (TGraph *grin, Option_t *option="", Double_t bass=0, Double_t span=0, Bool_t isPeriodic=kFALSE, Double_t *w=0)
void Approxin (TGraph *grin, Int_t iKind, Double_t &Ylow, Double_t &Yhigh, Int_t rule, Int_t iTies)
void Smoothin (TGraph *grin)
void Lowess (Double_t *x, Double_t *y, Int_t n, Double_t *ys, Double_t span, Int_t iter, Double_t delta)
 TGraphSmooth ()
 TGraphSmooth (const char *name)
virtual ~TGraphSmooth ()
TGraphApprox (TGraph *grin, Option_t *option="linear", Int_t nout=50, Double_t *xout=0, Double_t yleft=0, Double_t yright=0, Int_t rule=0, Double_t f=0, Option_t *ties="mean")
TGraphSmoothKern (TGraph *grin, Option_t *option="normal", Double_t bandwidth=0.5, Int_t nout=100, Double_t *xout=0)
TGraphSmoothLowess (TGraph *grin, Option_t *option="", Double_t span=0.67, Int_t iter=3, Double_t delta=0)
TGraphSmoothSuper (TGraph *grin, Option_t *option="", Double_t bass=0, Double_t span=0, Bool_t isPeriodic=kFALSE, Double_t *w=0)
void Approxin (TGraph *grin, Int_t iKind, Double_t &Ylow, Double_t &Yhigh, Int_t rule, Int_t iTies)
void Smoothin (TGraph *grin)
void Lowess (Double_t *x, Double_t *y, Int_t n, Double_t *ys, Double_t span, Int_t iter, Double_t delta)

Static Public Member Functions

static Double_t Approx1 (Double_t v, Double_t f, Double_t *x, Double_t *y, Int_t n, Int_t iKind, Double_t Ylow, Double_t Yhigh)
static void Lowest (Double_t *x, Double_t *y, Int_t n, Double_t &xs, Double_t &ys, Int_t nleft, Int_t nright, Double_t *w, Bool_t userw, Double_t *rw, Bool_t &ok)
static Int_t Rcmp (Double_t x, Double_t y)
static void Psort (Double_t *x, Int_t n, Int_t k)
static void Rank (Int_t n, Double_t *a, Int_t *index, Int_t *rank, Bool_t down=kTRUE)
static void BDRksmooth (Double_t *x, Double_t *y, Int_t n, Double_t *xp, Double_t *yp, Int_t np, Int_t kernel, Double_t bw)
static void BDRsupsmu (Int_t n, Double_t *x, Double_t *y, Double_t *w, Int_t iper, Double_t span, Double_t alpha, Double_t *smo, Double_t *sc)
static void BDRsmooth (Int_t n, Double_t *x, Double_t *y, Double_t *w, Double_t span, Int_t iper, Double_t vsmlsq, Double_t *smo, Double_t *acvr)
static Double_t Approx1 (Double_t v, Double_t f, Double_t *x, Double_t *y, Int_t n, Int_t iKind, Double_t Ylow, Double_t Yhigh)
static void Lowest (Double_t *x, Double_t *y, Int_t n, Double_t &xs, Double_t &ys, Int_t nleft, Int_t nright, Double_t *w, Bool_t userw, Double_t *rw, Bool_t &ok)
static Int_t Rcmp (Double_t x, Double_t y)
static void Psort (Double_t *x, Int_t n, Int_t k)
static void Rank (Int_t n, Double_t *a, Int_t *index, Int_t *rank, Bool_t down=kTRUE)
static void BDRksmooth (Double_t *x, Double_t *y, Int_t n, Double_t *xp, Double_t *yp, Int_t np, Int_t kernel, Double_t bw)
static void BDRsupsmu (Int_t n, Double_t *x, Double_t *y, Double_t *w, Int_t iper, Double_t span, Double_t alpha, Double_t *smo, Double_t *sc)
static void BDRsmooth (Int_t n, Double_t *x, Double_t *y, Double_t *w, Double_t span, Int_t iper, Double_t vsmlsq, Double_t *smo, Double_t *acvr)

Protected Attributes

Int_t fNin
Int_t fNout
TGraphfGin
TGraphfGout
Double_t fMinX
Double_t fMaxX
TGraphfGin
TGraphfGout

Private Member Functions

 TGraphSmooth (const TGraphSmooth &)
TGraphSmoothoperator= (const TGraphSmooth &)
 TGraphSmooth (const TGraphSmooth &)
TGraphSmoothoperator= (const TGraphSmooth &)

Detailed Description

Definition at line 38 of file TGraphSmooth.h.


Constructor & Destructor Documentation

TGraphSmooth::TGraphSmooth ( const TGraphSmooth  )  [private]

TGraphSmooth::TGraphSmooth (  ) 

Definition at line 41 of file TGraphSmooth.cxx.

References fGin, fGout, fMaxX, fMinX, fNin, and fNout.

TGraphSmooth::TGraphSmooth ( const char *  name  ) 

Definition at line 55 of file TGraphSmooth.cxx.

References fGin, fGout, fMaxX, fMinX, fNin, and fNout.

TGraphSmooth::~TGraphSmooth (  )  [virtual]

Definition at line 69 of file TGraphSmooth.cxx.

References fGin, and fGout.

TGraphSmooth::TGraphSmooth ( const TGraphSmooth  )  [private]

TGraphSmooth::TGraphSmooth (  ) 

TGraphSmooth::TGraphSmooth ( const char *  name  ) 

virtual TGraphSmooth::~TGraphSmooth (  )  [virtual]


Member Function Documentation

TGraphSmooth& TGraphSmooth::operator= ( const TGraphSmooth  )  [private]

TGraph * TGraphSmooth::Approx ( TGraph grin,
Option_t option = "linear",
Int_t  nout = 50,
Double_t xout = 0,
Double_t  yleft = 0,
Double_t  yright = 0,
Int_t  rule = 0,
Double_t  f = 0,
Option_t ties = "mean" 
)

Definition at line 995 of file TGraphSmooth.cxx.

References Approx1(), Approxin(), TString::Contains(), fGin, fGout, fMaxX, fMinX, fNin, fNout, TGraph::GetX(), TGraph::GetY(), grin, i, TMath::Max(), TGraph::SetPoint(), TString::ToLower(), and x.

Referenced by approx().

TGraph * TGraphSmooth::SmoothKern ( TGraph grin,
Option_t option = "normal",
Double_t  bandwidth = 0.5,
Int_t  nout = 100,
Double_t xout = 0 
)

Definition at line 113 of file TGraphSmooth.cxx.

References BDRksmooth(), TString::Contains(), fGin, fGout, fMaxX, fMinX, fNin, fNout, TGraph::GetX(), TGraph::GetY(), grin, i, kFALSE, TMath::Max(), TGraph::SetPoint(), Smoothin(), TMath::Sort(), and TString::ToLower().

Referenced by motorcycle().

TGraph * TGraphSmooth::SmoothLowess ( TGraph grin,
Option_t option = "",
Double_t  span = 0.67,
Int_t  iter = 3,
Double_t  delta = 0 
)

Definition at line 216 of file TGraphSmooth.cxx.

References TMath::Abs(), fGin, fGout, fMaxX, fMinX, fNin, fNout, TGraph::GetX(), TGraph::GetY(), grin, i, Lowess(), TGraph::SetPoint(), Smoothin(), and TString::ToLower().

Referenced by motorcycle().

TGraph * TGraphSmooth::SmoothSuper ( TGraph grin,
Option_t option = "",
Double_t  bass = 0,
Double_t  span = 0,
Bool_t  isPeriodic = kFALSE,
Double_t w = 0 
)

Definition at line 471 of file TGraphSmooth.cxx.

References BDRsupsmu(), fGin, fGout, fNin, fNout, TGraph::GetX(), TGraph::GetY(), grin, i, TGraph::SetPoint(), and Smoothin().

Referenced by motorcycle().

void TGraphSmooth::Approxin ( TGraph grin,
Int_t  iKind,
Double_t Ylow,
Double_t Yhigh,
Int_t  rule,
Int_t  iTies 
)

Definition at line 900 of file TGraphSmooth.cxx.

References fGin, fGout, fMaxX, fMinX, fNin, TGraph::GetN(), TGraph::GetX(), TGraph::GetY(), grin, i, k, kFALSE, Rank(), TGraph::Set(), TGraph::SetPoint(), x, and y.

Referenced by Approx().

void TGraphSmooth::Smoothin ( TGraph grin  ) 

Definition at line 80 of file TGraphSmooth.cxx.

References fGin, fGout, fMaxX, fMinX, fNin, TGraph::GetN(), TGraph::GetX(), TGraph::GetY(), grin, i, kFALSE, TGraph::SetPoint(), and TMath::Sort().

Referenced by SmoothKern(), SmoothLowess(), and SmoothSuper().

Double_t TGraphSmooth::Approx1 ( Double_t  v,
Double_t  f,
Double_t x,
Double_t y,
Int_t  n,
Int_t  iKind,
Double_t  Ylow,
Double_t  Yhigh 
) [static]

Definition at line 1101 of file TGraphSmooth.cxx.

References i, and j.

Referenced by Approx(), G__G__Hist_282_0_11(), and G__setup_memfuncTGraphSmooth().

void TGraphSmooth::Lowess ( Double_t x,
Double_t y,
Int_t  n,
Double_t ys,
Double_t  span,
Int_t  iter,
Double_t  delta 
)

Definition at line 267 of file TGraphSmooth.cxx.

References TMath::Abs(), c1, fGout, i, j, Lowest(), TMath::Max(), TMath::Min(), ok, and Psort().

Referenced by SmoothLowess().

void TGraphSmooth::Lowest ( Double_t x,
Double_t y,
Int_t  n,
Double_t xs,
Double_t ys,
Int_t  nleft,
Int_t  nright,
Double_t w,
Bool_t  userw,
Double_t rw,
Bool_t ok 
) [static]

Definition at line 393 of file TGraphSmooth.cxx.

References a, TMath::Abs(), b, c, d, h, h1, j, kFALSE, kTRUE, TMath::Max(), and TMath::Sqrt().

Referenced by G__G__Hist_282_0_13(), G__setup_memfuncTGraphSmooth(), and Lowess().

Int_t TGraphSmooth::Rcmp ( Double_t  x,
Double_t  y 
) [static]

Definition at line 1139 of file TGraphSmooth.cxx.

Referenced by G__G__Hist_282_0_14(), G__setup_memfuncTGraphSmooth(), and Psort().

void TGraphSmooth::Psort ( Double_t x,
Int_t  n,
Int_t  k 
) [static]

Definition at line 1150 of file TGraphSmooth.cxx.

References i, j, Rcmp(), and w.

Referenced by G__G__Hist_282_0_15(), G__setup_memfuncTGraphSmooth(), and Lowess().

void TGraphSmooth::Rank ( Int_t  n,
Double_t a,
Int_t index,
Int_t rank,
Bool_t  down = kTRUE 
) [static]

Definition at line 1173 of file TGraphSmooth.cxx.

References i, k, and TMath::Sort().

Referenced by Approxin(), G__G__Hist_282_0_16(), and G__setup_memfuncTGraphSmooth().

void TGraphSmooth::BDRksmooth ( Double_t x,
Double_t y,
Int_t  n,
Double_t xp,
Double_t yp,
Int_t  np,
Int_t  kernel,
Double_t  bw 
) [static]

Definition at line 166 of file TGraphSmooth.cxx.

References TMath::Abs(), TMath::Exp(), i, j, num, w, and x0.

Referenced by G__G__Hist_282_0_17(), G__setup_memfuncTGraphSmooth(), and SmoothKern().

void TGraphSmooth::BDRsupsmu ( Int_t  n,
Double_t x,
Double_t y,
Double_t w,
Int_t  iper,
Double_t  span,
Double_t  alpha,
Double_t smo,
Double_t sc 
) [static]

Definition at line 563 of file TGraphSmooth.cxx.

References a, BDRsmooth(), h, i, j, TMath::Max(), and TMath::Power().

Referenced by G__G__Hist_282_0_18(), G__setup_memfuncTGraphSmooth(), and SmoothSuper().

void TGraphSmooth::BDRsmooth ( Int_t  n,
Double_t x,
Double_t y,
Double_t w,
Double_t  span,
Int_t  iper,
Double_t  vsmlsq,
Double_t smo,
Double_t acvr 
) [static]

Definition at line 729 of file TGraphSmooth.cxx.

References a, TMath::Abs(), h1, i, j, and out.

Referenced by BDRsupsmu(), G__G__Hist_282_0_19(), and G__setup_memfuncTGraphSmooth().

TGraphSmooth& TGraphSmooth::operator= ( const TGraphSmooth  )  [private]

TGraph* TGraphSmooth::Approx ( TGraph grin,
Option_t option = "linear",
Int_t  nout = 50,
Double_t xout = 0,
Double_t  yleft = 0,
Double_t  yright = 0,
Int_t  rule = 0,
Double_t  f = 0,
Option_t ties = "mean" 
)

TGraph* TGraphSmooth::SmoothKern ( TGraph grin,
Option_t option = "normal",
Double_t  bandwidth = 0.5,
Int_t  nout = 100,
Double_t xout = 0 
)

TGraph* TGraphSmooth::SmoothLowess ( TGraph grin,
Option_t option = "",
Double_t  span = 0.67,
Int_t  iter = 3,
Double_t  delta = 0 
)

TGraph* TGraphSmooth::SmoothSuper ( TGraph grin,
Option_t option = "",
Double_t  bass = 0,
Double_t  span = 0,
Bool_t  isPeriodic = kFALSE,
Double_t w = 0 
)

void TGraphSmooth::Approxin ( TGraph grin,
Int_t  iKind,
Double_t Ylow,
Double_t Yhigh,
Int_t  rule,
Int_t  iTies 
)

void TGraphSmooth::Smoothin ( TGraph grin  ) 

static Double_t TGraphSmooth::Approx1 ( Double_t  v,
Double_t  f,
Double_t x,
Double_t y,
Int_t  n,
Int_t  iKind,
Double_t  Ylow,
Double_t  Yhigh 
) [static]

void TGraphSmooth::Lowess ( Double_t x,
Double_t y,
Int_t  n,
Double_t ys,
Double_t  span,
Int_t  iter,
Double_t  delta 
)

static void TGraphSmooth::Lowest ( Double_t x,
Double_t y,
Int_t  n,
Double_t xs,
Double_t ys,
Int_t  nleft,
Int_t  nright,
Double_t w,
Bool_t  userw,
Double_t rw,
Bool_t ok 
) [static]

static Int_t TGraphSmooth::Rcmp ( Double_t  x,
Double_t  y 
) [static]

static void TGraphSmooth::Psort ( Double_t x,
Int_t  n,
Int_t  k 
) [static]

static void TGraphSmooth::Rank ( Int_t  n,
Double_t a,
Int_t index,
Int_t rank,
Bool_t  down = kTRUE 
) [static]

static void TGraphSmooth::BDRksmooth ( Double_t x,
Double_t y,
Int_t  n,
Double_t xp,
Double_t yp,
Int_t  np,
Int_t  kernel,
Double_t  bw 
) [static]

static void TGraphSmooth::BDRsupsmu ( Int_t  n,
Double_t x,
Double_t y,
Double_t w,
Int_t  iper,
Double_t  span,
Double_t  alpha,
Double_t smo,
Double_t sc 
) [static]

static void TGraphSmooth::BDRsmooth ( Int_t  n,
Double_t x,
Double_t y,
Double_t w,
Double_t  span,
Int_t  iper,
Double_t  vsmlsq,
Double_t smo,
Double_t acvr 
) [static]


Member Data Documentation

Int_t TGraphSmooth::fNin [protected]

Definition at line 45 of file TGraphSmooth.h.

Referenced by Approx(), Approxin(), Smoothin(), SmoothKern(), SmoothLowess(), SmoothSuper(), and TGraphSmooth().

Int_t TGraphSmooth::fNout [protected]

Definition at line 46 of file TGraphSmooth.h.

Referenced by Approx(), SmoothKern(), SmoothLowess(), SmoothSuper(), and TGraphSmooth().

TGraph* TGraphSmooth::fGin [protected]

Definition at line 47 of file TGraphSmooth.h.

Referenced by Approx(), Approxin(), Smoothin(), SmoothKern(), SmoothLowess(), SmoothSuper(), TGraphSmooth(), and ~TGraphSmooth().

TGraph* TGraphSmooth::fGout [protected]

Definition at line 48 of file TGraphSmooth.h.

Referenced by Approx(), Approxin(), Lowess(), Smoothin(), SmoothKern(), SmoothLowess(), SmoothSuper(), TGraphSmooth(), and ~TGraphSmooth().

Double_t TGraphSmooth::fMinX [protected]

Definition at line 49 of file TGraphSmooth.h.

Referenced by Approx(), Approxin(), Smoothin(), SmoothKern(), SmoothLowess(), and TGraphSmooth().

Double_t TGraphSmooth::fMaxX [protected]

Definition at line 50 of file TGraphSmooth.h.

Referenced by Approx(), Approxin(), Smoothin(), SmoothKern(), SmoothLowess(), and TGraphSmooth().

TGraph* TGraphSmooth::fGin [protected]

Definition at line 47 of file TGraphSmooth.h.

TGraph* TGraphSmooth::fGout [protected]

Definition at line 48 of file TGraphSmooth.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:40:46 2011 for ROOT_528-00b_version by  doxygen 1.5.1