![]() |
AliRoot Core
3dc7879 (3dc7879)
|
#include <TKDInterpolatorBase.h>
Public Types | |
enum | EKDInterpolatorBase { kdN = 4, kNhelper = 30 } |
enum | EKDInterpolatorBaseBits { kCOG = 0, kSTORE = 1, kWEIGHTS = 2 } |
Public Member Functions | |
TKDInterpolatorBase (Int_t size=0) | |
virtual | ~TKDInterpolatorBase () |
Bool_t | Bootstrap () |
Double_t | Eval (const Double_t *point, Double_t &result, Double_t &error, Bool_t force=kFALSE) |
virtual Int_t | GetNodeIndex (const Float_t *p)=0 |
Float_t | GetAlpha () const |
Int_t | GetLambda () const |
Int_t | GetSize () const |
Bool_t | GetCOGPoint (Int_t node, Float_t *&coord, Float_t &val, Float_t &error) const |
TKDNodeInfo * | GetNodeInfo (Int_t inode) const |
Int_t | GetNTNodes () const |
Bool_t | GetRange (Int_t ax, Float_t &min, Float_t &max) const |
void | GetStatus (Option_t *opt="") |
Bool_t | HasStore () const |
Bool_t | UseCOG () const |
Bool_t | UseWeights () const |
void | DrawProjection (UInt_t ax1=0, UInt_t ax2=1) |
void | SetAlpha (Float_t a) |
void | SetCOG (Bool_t on=kTRUE) |
void | SetStore (Bool_t on=kTRUE) |
void | SetWeights (Bool_t on=kTRUE) |
Protected Member Functions | |
virtual Bool_t | Build (Int_t nnodes) |
Protected Attributes | |
Int_t | fNSize |
TClonesArray * | fNodes |
data dimension More... | |
TKDNodeInfo::TKDNodeDraw * | fNodesDraw |
UChar_t | fStatus |
graphical representation of interpolation nodes More... | |
UChar_t | fLambda |
Short_t | fDepth |
number of parameters in polynom More... | |
Float_t | fAlpha |
depth of the KD Tree structure used More... | |
Float_t ** | fRefPoints |
Double_t * | fBuffer |
temporary storage of COG data More... | |
TKDTree< Int_t, Float_t > * | fKDhelper |
working space [2*fLambda] More... | |
TLinearFitter * | fFitter |
kNN finder More... | |
Private Member Functions | |
TKDInterpolatorBase (const TKDInterpolatorBase &) | |
linear fitter More... | |
TKDInterpolatorBase & | operator= (const TKDInterpolatorBase &) |
Definition at line 25 of file TKDInterpolatorBase.h.
Enumerator | |
---|---|
kdN | |
kNhelper |
Definition at line 28 of file TKDInterpolatorBase.h.
Enumerator | |
---|---|
kCOG | |
kSTORE | |
kWEIGHTS |
Definition at line 32 of file TKDInterpolatorBase.h.
TKDInterpolatorBase::TKDInterpolatorBase | ( | Int_t | size = 0 | ) |
Definition at line 31 of file TKDInterpolatorBase.cxx.
|
virtual |
Definition at line 93 of file TKDInterpolatorBase.cxx.
|
private |
linear fitter
Bool_t TKDInterpolatorBase::Bootstrap | ( | ) |
Definition at line 72 of file TKDInterpolatorBase.cxx.
|
protectedvirtual |
Reimplemented in TKDPDF, TKDInterpolator, and TKDSpline.
Definition at line 50 of file TKDInterpolatorBase.cxx.
Referenced by TKDInterpolator::Build(), TKDPDF::Build(), SetWeights(), and TKDInterpolator::TKDInterpolator().
void TKDInterpolatorBase::DrawProjection | ( | UInt_t | ax1 = 0 , |
UInt_t | ax2 = 1 |
||
) |
Definition at line 327 of file TKDInterpolatorBase.cxx.
Referenced by UseWeights().
Double_t TKDInterpolatorBase::Eval | ( | const Double_t * | point, |
Double_t & | result, | ||
Double_t & | error, | ||
Bool_t | force = kFALSE |
||
) |
Definition at line 180 of file TKDInterpolatorBase.cxx.
Referenced by interpolCompare(), interpolRead(), and pdfCompare().
|
inline |
Definition at line 43 of file TKDInterpolatorBase.h.
Bool_t TKDInterpolatorBase::GetCOGPoint | ( | Int_t | node, |
Float_t *& | coord, | ||
Float_t & | val, | ||
Float_t & | error | ||
) | const |
Definition at line 115 of file TKDInterpolatorBase.cxx.
Referenced by GetSize(), interpolCompare(), interpolRead(), and pdfCompare().
|
inline |
Definition at line 44 of file TKDInterpolatorBase.h.
|
pure virtual |
Implemented in TKDPDF, and TKDInterpolator.
Referenced by Eval().
TKDNodeInfo * TKDInterpolatorBase::GetNodeInfo | ( | Int_t | inode | ) | const |
Definition at line 127 of file TKDInterpolatorBase.cxx.
Referenced by GetSize(), and interpolCompare().
Int_t TKDInterpolatorBase::GetNTNodes | ( | ) | const |
Definition at line 134 of file TKDInterpolatorBase.cxx.
Referenced by TKDInterpolator::AddNode(), Bootstrap(), TKDPDF::DrawNode(), DrawProjection(), Eval(), GetCOGPoint(), TKDInterpolator::GetNodeIndex(), GetNodeInfo(), GetRange(), GetSize(), GetStatus(), interpolCompare(), interpolRead(), pdfCompare(), SetAlpha(), and TKDInterpolator::SetNode().
Bool_t TKDInterpolatorBase::GetRange | ( | Int_t | ax, |
Float_t & | min, | ||
Float_t & | max | ||
) | const |
Definition at line 140 of file TKDInterpolatorBase.cxx.
Referenced by DrawProjection(), and GetSize().
|
inline |
Definition at line 45 of file TKDInterpolatorBase.h.
void TKDInterpolatorBase::GetStatus | ( | Option_t * | opt = "" | ) |
Definition at line 161 of file TKDInterpolatorBase.cxx.
Referenced by GetSize().
|
inline |
Definition at line 52 of file TKDInterpolatorBase.h.
Referenced by Eval(), and GetStatus().
|
private |
void TKDInterpolatorBase::SetAlpha | ( | Float_t | a | ) |
Definition at line 360 of file TKDInterpolatorBase.cxx.
Referenced by interpolation(), interpolCompare(), pdfCompare(), and UseWeights().
|
inline |
Definition at line 58 of file TKDInterpolatorBase.h.
|
inline |
Definition at line 59 of file TKDInterpolatorBase.h.
Referenced by interpolation(), interpolWrite(), and pdfCompare().
|
inline |
Definition at line 60 of file TKDInterpolatorBase.h.
|
inline |
Definition at line 53 of file TKDInterpolatorBase.h.
Referenced by Eval(), and GetStatus().
|
inline |
Definition at line 54 of file TKDInterpolatorBase.h.
Referenced by Eval(), and GetStatus().
|
protected |
depth of the KD Tree structure used
Definition at line 74 of file TKDInterpolatorBase.h.
Referenced by Build(), Eval(), GetAlpha(), and SetAlpha().
|
protected |
temporary storage of COG data
Definition at line 76 of file TKDInterpolatorBase.h.
Referenced by Eval(), and ~TKDInterpolatorBase().
|
protected |
number of parameters in polynom
Definition at line 73 of file TKDInterpolatorBase.h.
|
protected |
kNN finder
Definition at line 78 of file TKDInterpolatorBase.h.
Referenced by Eval(), and ~TKDInterpolatorBase().
|
protected |
working space [2*fLambda]
Definition at line 77 of file TKDInterpolatorBase.h.
Referenced by Eval(), and ~TKDInterpolatorBase().
|
protected |
Definition at line 72 of file TKDInterpolatorBase.h.
Referenced by Bootstrap(), TKDPDF::Build(), Build(), Eval(), GetLambda(), GetStatus(), and SetAlpha().
|
protected |
data dimension
Definition at line 67 of file TKDInterpolatorBase.h.
Referenced by TKDInterpolator::AddNode(), Bootstrap(), TKDPDF::Build(), Build(), TKDPDF::DrawNode(), DrawProjection(), Eval(), GetCOGPoint(), TKDInterpolator::GetNodeIndex(), GetNodeInfo(), GetNTNodes(), GetRange(), GetStatus(), TKDInterpolator::SetNode(), and ~TKDInterpolatorBase().
|
protected |
Definition at line 68 of file TKDInterpolatorBase.h.
Referenced by DrawProjection(), and ~TKDInterpolatorBase().
|
protected |
Definition at line 66 of file TKDInterpolatorBase.h.
Referenced by Bootstrap(), TKDInterpolator::Build(), Build(), DrawProjection(), Eval(), TKDInterpolator::GetNodeIndex(), GetSize(), GetStatus(), TKDPDF::TKDPDF(), and ~TKDInterpolatorBase().
|
protected |
Definition at line 75 of file TKDInterpolatorBase.h.
Referenced by Eval(), and ~TKDInterpolatorBase().
|
protected |
graphical representation of interpolation nodes
Definition at line 71 of file TKDInterpolatorBase.h.
Referenced by GetStatus(), HasStore(), SetCOG(), SetStore(), SetWeights(), UseCOG(), and UseWeights().