ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | List of all members
TKDEFGT Class Reference

Definition at line 25 of file TKDEFGT.h.

Public Member Functions

 TKDEFGT ()
 Constructor. More...
 
virtual ~TKDEFGT ()
 Destructor. More...
 
void BuildModel (const std::vector< Double_t > &sources, Double_t sigma=1., UInt_t dim=3, UInt_t p=8, UInt_t k=0)
 Calculate coefficients for FGT. More...
 
void BuildModel (const TGL5DDataSet *sources, Double_t sigma=1., UInt_t p=8, UInt_t k=0)
 Calculate coefficients for FGT. More...
 
void Predict (const std::vector< Double_t > &targets, std::vector< Double_t > &densities, Double_t e) const
 Calculate densities. More...
 

Private Member Functions

void Kcenter (const std::vector< double > &x)
 Solve kcenter task. More...
 
void Kcenter (const TGL5DDataSet *sources)
 Solve kcenter task. More...
 
void Compute_C_k ()
 Coefficients C_K. More...
 
void Compute_A_k (const std::vector< Double_t > &x)
 Coefficients A_K. More...
 
void Compute_A_k (const TGL5DDataSet *sources)
 Coefficients A_K. Special case for TTree and dim == 3. More...
 
 TKDEFGT (const TKDEFGT &rhs)
 
TKDEFGToperator= (const TKDEFGT &rhs)
 

Private Attributes

std::vector< Double_tfXC
 
std::vector< Double_tfWeights
 
std::vector< UInt_tfIndxc
 
std::vector< Double_tfA_K
 
std::vector< UInt_tfIndx
 
std::vector< UInt_tfXhead
 
std::vector< UInt_tfXboxsz
 
std::vector< Double_tfDistC
 
std::vector< Double_tfC_K
 
std::vector< UInt_tfCinds
 
std::vector< UInt_tfHeads
 
std::vector< Double_tfDx
 
std::vector< Double_tfProds
 
UInt_t fDim
 
UInt_t fP
 
UInt_t fK
 
Double_t fSigma
 
UInt_t fPD
 
Bool_t fModelValid
 

#include <TKDEFGT.h>

Constructor & Destructor Documentation

TKDEFGT::TKDEFGT ( )

Constructor.

Definition at line 29 of file TKDEFGT.cxx.

TKDEFGT::~TKDEFGT ( )
virtual

Destructor.

Definition at line 48 of file TKDEFGT.cxx.

TKDEFGT::TKDEFGT ( const TKDEFGT rhs)
private

Member Function Documentation

void TKDEFGT::BuildModel ( const std::vector< Double_t > &  sources,
Double_t  sigma = 1.,
UInt_t  dim = 3,
UInt_t  p = 8,
UInt_t  k = 0 
)

Calculate coefficients for FGT.

Definition at line 55 of file TKDEFGT.cxx.

Referenced by TGL5DPainter::AddSurface(), and TGL5DPainter::ResetGeometryRanges().

void TKDEFGT::BuildModel ( const TGL5DDataSet sources,
Double_t  sigma = 1.,
UInt_t  p = 8,
UInt_t  k = 0 
)

Calculate coefficients for FGT.

Alternative specialized version for data from TTree.

Definition at line 105 of file TKDEFGT.cxx.

void TKDEFGT::Compute_A_k ( const std::vector< Double_t > &  x)
private

Coefficients A_K.

Definition at line 292 of file TKDEFGT.cxx.

Referenced by BuildModel().

void TKDEFGT::Compute_A_k ( const TGL5DDataSet sources)
private

Coefficients A_K. Special case for TTree and dim == 3.

Definition at line 337 of file TKDEFGT.cxx.

void TKDEFGT::Compute_C_k ( )
private

Coefficients C_K.

Definition at line 270 of file TKDEFGT.cxx.

Referenced by BuildModel().

void TKDEFGT::Kcenter ( const std::vector< double > &  x)
private

Solve kcenter task.

Definition at line 160 of file TKDEFGT.cxx.

Referenced by BuildModel().

void TKDEFGT::Kcenter ( const TGL5DDataSet sources)
private

Solve kcenter task.

Version for dim == 3 and data from TTree. Randomly pick one node as the first center.

Definition at line 209 of file TKDEFGT.cxx.

TKDEFGT& TKDEFGT::operator= ( const TKDEFGT rhs)
private
void TKDEFGT::Predict ( const std::vector< Double_t > &  targets,
std::vector< Double_t > &  densities,
Double_t  e 
) const

Calculate densities.

Definition at line 388 of file TKDEFGT.cxx.

Referenced by Rgl::Fgt::TKDEAdapter::FetchDensities().

Member Data Documentation

std::vector<Double_t> TKDEFGT::fA_K
private

Definition at line 31 of file TKDEFGT.h.

Referenced by BuildModel(), Compute_A_k(), and Predict().

std::vector<Double_t> TKDEFGT::fC_K
private

Definition at line 36 of file TKDEFGT.h.

Referenced by BuildModel(), Compute_A_k(), and Compute_C_k().

std::vector<UInt_t> TKDEFGT::fCinds
private

Definition at line 37 of file TKDEFGT.h.

Referenced by BuildModel(), and Compute_C_k().

UInt_t TKDEFGT::fDim
private

Definition at line 43 of file TKDEFGT.h.

Referenced by BuildModel(), Compute_A_k(), Compute_C_k(), Kcenter(), and Predict().

std::vector<Double_t> TKDEFGT::fDistC
private

Definition at line 35 of file TKDEFGT.h.

Referenced by BuildModel(), and Kcenter().

std::vector<Double_t> TKDEFGT::fDx
mutableprivate

Definition at line 40 of file TKDEFGT.h.

Referenced by BuildModel(), Compute_A_k(), and Predict().

std::vector<UInt_t> TKDEFGT::fHeads
mutableprivate

Definition at line 39 of file TKDEFGT.h.

Referenced by BuildModel(), Compute_A_k(), Compute_C_k(), and Predict().

std::vector<UInt_t> TKDEFGT::fIndx
private

Definition at line 32 of file TKDEFGT.h.

Referenced by BuildModel(), Compute_A_k(), and Kcenter().

std::vector<UInt_t> TKDEFGT::fIndxc
private

Definition at line 30 of file TKDEFGT.h.

Referenced by BuildModel(), and Kcenter().

UInt_t TKDEFGT::fK
private

Definition at line 45 of file TKDEFGT.h.

Referenced by BuildModel(), Compute_A_k(), Kcenter(), and Predict().

Bool_t TKDEFGT::fModelValid
private

Definition at line 48 of file TKDEFGT.h.

Referenced by BuildModel(), and Predict().

UInt_t TKDEFGT::fP
private

Definition at line 44 of file TKDEFGT.h.

Referenced by BuildModel(), Compute_A_k(), and Compute_C_k().

UInt_t TKDEFGT::fPD
private

Definition at line 47 of file TKDEFGT.h.

Referenced by BuildModel(), Compute_A_k(), and Predict().

std::vector<Double_t> TKDEFGT::fProds
mutableprivate

Definition at line 41 of file TKDEFGT.h.

Referenced by BuildModel(), Compute_A_k(), and Predict().

Double_t TKDEFGT::fSigma
private

Definition at line 46 of file TKDEFGT.h.

Referenced by BuildModel(), Compute_A_k(), and Predict().

std::vector<Double_t> TKDEFGT::fWeights
private

Definition at line 29 of file TKDEFGT.h.

Referenced by BuildModel(), and Compute_A_k().

std::vector<UInt_t> TKDEFGT::fXboxsz
private

Definition at line 34 of file TKDEFGT.h.

Referenced by BuildModel(), and Kcenter().

std::vector<Double_t> TKDEFGT::fXC
private

Definition at line 28 of file TKDEFGT.h.

Referenced by BuildModel(), Compute_A_k(), Kcenter(), and Predict().

std::vector<UInt_t> TKDEFGT::fXhead
private

Definition at line 33 of file TKDEFGT.h.

Referenced by BuildModel().

Collaboration diagram for TKDEFGT:
[legend]

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