A computation class for dual-tree based kernel density estimation cross-validation. More...
Public Types | |
typedef GeneralBinarySpaceTree < DBallBound< LMetric < 2 >, Vector >, Matrix, KdeCVStat< TKernelAux > > | Tree |
Public Member Functions | |
double | Compute () |
DualtreeKdeCV () | |
The default constructor. | |
void | Init (const Matrix &references, const Matrix &rset_weights, struct datanode *module_in) |
~DualtreeKdeCV () | |
The default destructor which deletes the trees. | |
Friends | |
class | DualtreeKdeCommon |
class | DualtreeKdeCVCommon |
A computation class for dual-tree based kernel density estimation cross-validation.
This class builds trees for input query and reference sets on Init. The KDE computation is then performed by calling Compute.
This class is only intended to compute once per instantiation.
Example use:
DualtreeKdeCV fast_kde; struct datanode* kde_module; double score; kde_module = fx_submodule(NULL, "kde", "kde_module"); fast_kde.Init(queries, references, queries_equal_references, kde_module); score = fast_kde.Compute();
Definition at line 128 of file dualtree_kde_cv.h.
DualtreeKdeCV< TKernelAux >::DualtreeKdeCV | ( | ) | [inline] |
The default constructor.
Definition at line 298 of file dualtree_kde_cv.h.
DualtreeKdeCV< TKernelAux >::~DualtreeKdeCV | ( | ) | [inline] |
The default destructor which deletes the trees.
Definition at line 304 of file dualtree_kde_cv.h.