#include <TKDEFGT.h>
Public Member Functions | |
TKDEFGT () | |
virtual | ~TKDEFGT () |
void | BuildModel (const std::vector< Double_t > &sources, Double_t sigma=1., UInt_t dim=3, UInt_t p=8, UInt_t k=0) |
void | BuildModel (const TGL5DDataSet *sources, Double_t sigma=1., UInt_t p=8, UInt_t k=0) |
void | Predict (const std::vector< Double_t > &targets, std::vector< Double_t > &densities, Double_t e) const |
TKDEFGT () | |
virtual | ~TKDEFGT () |
void | BuildModel (const std::vector< Double_t > &sources, Double_t sigma=1., UInt_t dim=3, UInt_t p=8, UInt_t k=0) |
void | BuildModel (const TGL5DDataSet *sources, Double_t sigma=1., UInt_t p=8, UInt_t k=0) |
void | Predict (const std::vector< Double_t > &targets, std::vector< Double_t > &densities, Double_t e) const |
Private Member Functions | |
void | Kcenter (const std::vector< double > &x) |
void | Kcenter (const TGL5DDataSet *sources) |
void | Compute_C_k () |
void | Compute_A_k (const std::vector< Double_t > &x) |
void | Compute_A_k (const TGL5DDataSet *sources) |
TKDEFGT (const TKDEFGT &rhs) | |
TKDEFGT & | operator= (const TKDEFGT &rhs) |
void | Kcenter (const std::vector< double > &x) |
void | Kcenter (const TGL5DDataSet *sources) |
void | Compute_C_k () |
void | Compute_A_k (const std::vector< Double_t > &x) |
void | Compute_A_k (const TGL5DDataSet *sources) |
TKDEFGT (const TKDEFGT &rhs) | |
TKDEFGT & | operator= (const TKDEFGT &rhs) |
Private Attributes | |
std::vector< Double_t > | fXC |
std::vector< Double_t > | fWeights |
std::vector< UInt_t > | fIndxc |
std::vector< Double_t > | fA_K |
std::vector< UInt_t > | fIndx |
std::vector< UInt_t > | fXhead |
std::vector< UInt_t > | fXboxsz |
std::vector< Double_t > | fDistC |
std::vector< Double_t > | fC_K |
std::vector< UInt_t > | fCinds |
std::vector< UInt_t > | fHeads |
std::vector< Double_t > | fDx |
std::vector< Double_t > | fProds |
UInt_t | fDim |
UInt_t | fP |
UInt_t | fK |
Double_t | fSigma |
UInt_t | fPD |
Bool_t | fModelValid |
std::vector< Double_t > | fXC |
std::vector< Double_t > | fWeights |
std::vector< UInt_t > | fIndxc |
std::vector< Double_t > | fA_K |
std::vector< UInt_t > | fIndx |
std::vector< UInt_t > | fXhead |
std::vector< UInt_t > | fXboxsz |
std::vector< Double_t > | fDistC |
std::vector< Double_t > | fC_K |
std::vector< UInt_t > | fCinds |
std::vector< UInt_t > | fHeads |
std::vector< Double_t > | fDx |
std::vector< Double_t > | fProds |
Definition at line 25 of file TKDEFGT.h.
TKDEFGT::TKDEFGT | ( | ) |
Definition at line 27 of file TKDEFGT.cxx.
TKDEFGT::~TKDEFGT | ( | ) | [virtual] |
Definition at line 45 of file TKDEFGT.cxx.
TKDEFGT::TKDEFGT | ( | const TKDEFGT & | rhs | ) | [private] |
TKDEFGT::TKDEFGT | ( | ) |
virtual TKDEFGT::~TKDEFGT | ( | ) | [virtual] |
TKDEFGT::TKDEFGT | ( | const TKDEFGT & | rhs | ) | [private] |
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 | |||
) |
Definition at line 51 of file TKDEFGT.cxx.
References Compute_A_k(), Compute_C_k(), fA_K, fC_K, fCinds, fDim, fDistC, fDx, fHeads, fIndx, fIndxc, fK, fModelValid, fP, fPD, fProds, fSigma, fWeights, fXboxsz, fXC, fXhead, Kcenter(), kTRUE, NChooseK(), TMath::Sqrt(), and Warning().
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 | |||
) |
Definition at line 99 of file TKDEFGT.cxx.
References Compute_A_k(), Compute_C_k(), fA_K, fC_K, fCinds, fDim, fDistC, fDx, fHeads, fIndx, fIndxc, fK, fModelValid, fP, fPD, fProds, fSigma, fWeights, fXboxsz, fXC, fXhead, Kcenter(), kTRUE, NChooseK(), TGL5DDataSet::SelectedSize(), TMath::Sqrt(), and Warning().
void TKDEFGT::Predict | ( | const std::vector< Double_t > & | targets, | |
std::vector< Double_t > & | densities, | |||
Double_t | e | |||
) | const |
Definition at line 378 of file TKDEFGT.cxx.
References Error, TMath::Exp(), fA_K, fDim, fDx, fHeads, fK, fModelValid, fPD, fProds, fSigma, fXC, i, InvNChooseK(), j, k, m, TMath::Max(), TMath::Min(), p, t, and Warning().
Referenced by Rgl::Fgt::TKDEAdapter::FetchDensities().
void TKDEFGT::Kcenter | ( | const std::vector< double > & | x | ) | [private] |
void TKDEFGT::Kcenter | ( | const TGL5DDataSet * | sources | ) | [private] |
Definition at line 202 of file TKDEFGT.cxx.
References DDist(), fDim, fDistC, fIndx, fIndxc, fK, fXboxsz, fXC, i, Idmax(), j, TGL5DDataSet::SelectedSize(), TGL5DDataSet::V1(), TGL5DDataSet::V2(), and TGL5DDataSet::V3().
void TKDEFGT::Compute_C_k | ( | ) | [private] |
void TKDEFGT::Compute_A_k | ( | const std::vector< Double_t > & | x | ) | [private] |
void TKDEFGT::Compute_A_k | ( | const TGL5DDataSet * | sources | ) | [private] |
Definition at line 328 of file TKDEFGT.cxx.
References TMath::Exp(), fA_K, fC_K, fDx, fHeads, fIndx, fK, fP, fPD, fProds, fSigma, fWeights, fXC, i, j, k, n, TGL5DDataSet::SelectedSize(), t, TGL5DDataSet::V1(), TGL5DDataSet::V2(), and TGL5DDataSet::V3().
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 | |||
) |
void TKDEFGT::BuildModel | ( | const TGL5DDataSet * | sources, | |
Double_t | sigma = 1. , |
|||
UInt_t | p = 8 , |
|||
UInt_t | k = 0 | |||
) |
void TKDEFGT::Predict | ( | const std::vector< Double_t > & | targets, | |
std::vector< Double_t > & | densities, | |||
Double_t | e | |||
) | const |
void TKDEFGT::Kcenter | ( | const std::vector< double > & | x | ) | [private] |
void TKDEFGT::Kcenter | ( | const TGL5DDataSet * | sources | ) | [private] |
void TKDEFGT::Compute_C_k | ( | ) | [private] |
void TKDEFGT::Compute_A_k | ( | const std::vector< Double_t > & | x | ) | [private] |
void TKDEFGT::Compute_A_k | ( | const TGL5DDataSet * | sources | ) | [private] |
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<Double_t> TKDEFGT::fWeights [private] |
std::vector<UInt_t> TKDEFGT::fIndxc [private] |
std::vector<Double_t> TKDEFGT::fA_K [private] |
std::vector<UInt_t> TKDEFGT::fIndx [private] |
std::vector<UInt_t> TKDEFGT::fXhead [private] |
std::vector<UInt_t> TKDEFGT::fXboxsz [private] |
std::vector<Double_t> TKDEFGT::fDistC [private] |
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] |
std::vector<UInt_t> TKDEFGT::fHeads [mutable, private] |
Definition at line 39 of file TKDEFGT.h.
Referenced by BuildModel(), Compute_A_k(), Compute_C_k(), and Predict().
std::vector<Double_t> TKDEFGT::fDx [mutable, private] |
std::vector<Double_t> TKDEFGT::fProds [mutable, private] |
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().
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::fK [private] |
Definition at line 45 of file TKDEFGT.h.
Referenced by BuildModel(), Compute_A_k(), Kcenter(), and Predict().
Double_t TKDEFGT::fSigma [private] |
UInt_t TKDEFGT::fPD [private] |
Bool_t TKDEFGT::fModelValid [private] |
std::vector<Double_t> TKDEFGT::fXC [private] |
std::vector<Double_t> TKDEFGT::fWeights [private] |
std::vector<UInt_t> TKDEFGT::fIndxc [private] |
std::vector<Double_t> TKDEFGT::fA_K [private] |
std::vector<UInt_t> TKDEFGT::fIndx [private] |
std::vector<UInt_t> TKDEFGT::fXhead [private] |
std::vector<UInt_t> TKDEFGT::fXboxsz [private] |
std::vector<Double_t> TKDEFGT::fDistC [private] |
std::vector<Double_t> TKDEFGT::fC_K [private] |
std::vector<UInt_t> TKDEFGT::fCinds [private] |
std::vector<UInt_t> TKDEFGT::fHeads [mutable, private] |
std::vector<Double_t> TKDEFGT::fDx [mutable, private] |
std::vector<Double_t> TKDEFGT::fProds [mutable, private] |