A computation class for FGT based kernel density estimation. More...
Public Member Functions | |
void | Compute () |
Compute KDE estimates using fast Gauss transform. | |
FGTKde () | |
Constructor that does not do anything. | |
void | get_density_estimates (Vector *results) |
Get the density estimates. | |
void | Init (Matrix &qset, Matrix &rset, struct datanode *module_in) |
Initialize with the given query and the reference datasets. | |
void | PrintDebug () |
Output KDE results to a stream. | |
~FGTKde () | |
Destructor that does not do anything. |
A computation class for FGT based kernel density estimation.
This class is only inteded to compute once per instantiation.
Example use:
FGTKde fgt_kde; struct datanode* fgt_kde_module; Vector results; fgt_kde_module = fx_submodule(NULL, "kde", "fgt_kde_module"); fgt_kde.Init(queries, references, fgt_kde_module); fgt_kde.Compute(); // important to make sure that you don't call Init on results! fgt_kde.get_density_estimates(&results);
Definition at line 85 of file fgt_kde.h.
FGTKde::FGTKde | ( | ) | [inline] |
FGTKde::~FGTKde | ( | ) | [inline] |
Destructor that does not do anything.
Definition at line 1173 of file fgt_kde.h.
References GaussianKernel::CalcNormConstant().
void FGTKde::Compute | ( | ) | [inline] |
void FGTKde::get_density_estimates | ( | Vector * | results | ) | [inline] |
void FGTKde::Init | ( | Matrix & | qset, | |
Matrix & | rset, | |||
struct datanode * | module_in | |||
) | [inline] |
void FGTKde::PrintDebug | ( | ) | [inline] |