DualtreeKdeCV< TKernelAux > Class Template Reference

A computation class for dual-tree based kernel density estimation cross-validation. More...

Collaboration diagram for DualtreeKdeCV< TKernelAux >:
[legend]

List of all members.

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

Detailed Description

template<typename TKernelAux>
class DualtreeKdeCV< TKernelAux >

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.


Constructor & Destructor Documentation

template<typename TKernelAux>
DualtreeKdeCV< TKernelAux >::DualtreeKdeCV (  )  [inline]

The default constructor.

Definition at line 298 of file dualtree_kde_cv.h.

template<typename TKernelAux>
DualtreeKdeCV< TKernelAux >::~DualtreeKdeCV (  )  [inline]

The default destructor which deletes the trees.

Definition at line 304 of file dualtree_kde_cv.h.


The documentation for this class was generated from the following file:
Generated on Mon Jan 24 12:04:40 2011 for FASTlib by  doxygen 1.6.3