AliRoot Core  3dc7879 (3dc7879)
TKDInterpolatorBase Class Referenceabstract

#include <TKDInterpolatorBase.h>

Inheritance diagram for TKDInterpolatorBase:

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
 
TKDNodeInfoGetNodeInfo (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::TKDNodeDrawfNodesDraw
 
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...
 
TKDInterpolatorBaseoperator= (const TKDInterpolatorBase &)
 

Detailed Description

Definition at line 25 of file TKDInterpolatorBase.h.

Member Enumeration Documentation

Enumerator
kdN 
kNhelper 

Definition at line 28 of file TKDInterpolatorBase.h.

Enumerator
kCOG 
kSTORE 
kWEIGHTS 

Definition at line 32 of file TKDInterpolatorBase.h.

Constructor & Destructor Documentation

TKDInterpolatorBase::TKDInterpolatorBase ( Int_t  size = 0)

Definition at line 31 of file TKDInterpolatorBase.cxx.

TKDInterpolatorBase::~TKDInterpolatorBase ( )
virtual

Definition at line 93 of file TKDInterpolatorBase.cxx.

TKDInterpolatorBase::TKDInterpolatorBase ( const TKDInterpolatorBase )
private

linear fitter

Member Function Documentation

Bool_t TKDInterpolatorBase::Bootstrap ( )

Definition at line 72 of file TKDInterpolatorBase.cxx.

Bool_t TKDInterpolatorBase::Build ( Int_t  nnodes)
protectedvirtual
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().

Float_t TKDInterpolatorBase::GetAlpha ( ) const
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().

Int_t TKDInterpolatorBase::GetLambda ( ) const
inline

Definition at line 44 of file TKDInterpolatorBase.h.

virtual Int_t TKDInterpolatorBase::GetNodeIndex ( const Float_t *  p)
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().

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().

Int_t TKDInterpolatorBase::GetSize ( ) const
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().

Bool_t TKDInterpolatorBase::HasStore ( ) const
inline

Definition at line 52 of file TKDInterpolatorBase.h.

Referenced by Eval(), and GetStatus().

TKDInterpolatorBase& TKDInterpolatorBase::operator= ( const TKDInterpolatorBase )
private
void TKDInterpolatorBase::SetAlpha ( Float_t  a)

Definition at line 360 of file TKDInterpolatorBase.cxx.

Referenced by interpolation(), interpolCompare(), pdfCompare(), and UseWeights().

void TKDInterpolatorBase::SetCOG ( Bool_t  on = kTRUE)
inline

Definition at line 58 of file TKDInterpolatorBase.h.

void TKDInterpolatorBase::SetStore ( Bool_t  on = kTRUE)
inline

Definition at line 59 of file TKDInterpolatorBase.h.

Referenced by interpolation(), interpolWrite(), and pdfCompare().

void TKDInterpolatorBase::SetWeights ( Bool_t  on = kTRUE)
inline

Definition at line 60 of file TKDInterpolatorBase.h.

Bool_t TKDInterpolatorBase::UseCOG ( ) const
inline

Definition at line 53 of file TKDInterpolatorBase.h.

Referenced by Eval(), and GetStatus().

Bool_t TKDInterpolatorBase::UseWeights ( ) const
inline

Definition at line 54 of file TKDInterpolatorBase.h.

Referenced by Eval(), and GetStatus().

Member Data Documentation

Float_t TKDInterpolatorBase::fAlpha
protected

depth of the KD Tree structure used

Definition at line 74 of file TKDInterpolatorBase.h.

Referenced by Build(), Eval(), GetAlpha(), and SetAlpha().

Double_t* TKDInterpolatorBase::fBuffer
protected

temporary storage of COG data

Definition at line 76 of file TKDInterpolatorBase.h.

Referenced by Eval(), and ~TKDInterpolatorBase().

Short_t TKDInterpolatorBase::fDepth
protected

number of parameters in polynom

Definition at line 73 of file TKDInterpolatorBase.h.

TLinearFitter* TKDInterpolatorBase::fFitter
protected

kNN finder

Definition at line 78 of file TKDInterpolatorBase.h.

Referenced by Eval(), and ~TKDInterpolatorBase().

TKDTree<Int_t, Float_t>* TKDInterpolatorBase::fKDhelper
protected

working space [2*fLambda]

Definition at line 77 of file TKDInterpolatorBase.h.

Referenced by Eval(), and ~TKDInterpolatorBase().

UChar_t TKDInterpolatorBase::fLambda
protected

Definition at line 72 of file TKDInterpolatorBase.h.

Referenced by Bootstrap(), TKDPDF::Build(), Build(), Eval(), GetLambda(), GetStatus(), and SetAlpha().

TKDNodeInfo::TKDNodeDraw* TKDInterpolatorBase::fNodesDraw
protected

Definition at line 68 of file TKDInterpolatorBase.h.

Referenced by DrawProjection(), and ~TKDInterpolatorBase().

Float_t** TKDInterpolatorBase::fRefPoints
protected

Definition at line 75 of file TKDInterpolatorBase.h.

Referenced by Eval(), and ~TKDInterpolatorBase().

UChar_t TKDInterpolatorBase::fStatus
protected

graphical representation of interpolation nodes

Definition at line 71 of file TKDInterpolatorBase.h.

Referenced by GetStatus(), HasStore(), SetCOG(), SetStore(), SetWeights(), UseCOG(), and UseWeights().


The documentation for this class was generated from the following files: