KDEStat Class Reference

Extra data for each node in the tree for the task of kernel density estimation. More...

Public Member Functions

 KDEStat ()
 Initialize the statistic. More...

 
template
<
typename
TreeType
>
 KDEStat (TreeType &node)
 Initialization for a fully initialized node. More...

 
const arma::vec & Centroid () const
 Get the centroid of the node. More...

 
template
<
typename
Archive
>
void serialize (Archive &ar, const unsigned int)
 Serialize the statistic to/from an archive. More...

 
void SetCentroid (arma::vec newCentroid)
 Modify the centroid of the node. More...

 
bool ValidCentroid () const
 Get whether the centroid is valid. More...

 

Detailed Description

Extra data for each node in the tree for the task of kernel density estimation.

Definition at line 24 of file kde_stat.hpp.

Constructor & Destructor Documentation

◆ KDEStat() [1/2]

KDEStat ( )
inline

Initialize the statistic.

Definition at line 28 of file kde_stat.hpp.

◆ KDEStat() [2/2]

KDEStat ( TreeType &  node)
inline

Initialization for a fully initialized node.

Definition at line 32 of file kde_stat.hpp.

Member Function Documentation

◆ Centroid()

const arma::vec& Centroid ( ) const
inline

Get the centroid of the node.

Definition at line 47 of file kde_stat.hpp.

◆ serialize()

void serialize ( Archive &  ar,
const unsigned  int 
)
inline

Serialize the statistic to/from an archive.

Definition at line 67 of file kde_stat.hpp.

◆ SetCentroid()

void SetCentroid ( arma::vec  newCentroid)
inline

Modify the centroid of the node.

Definition at line 56 of file kde_stat.hpp.

◆ ValidCentroid()

bool ValidCentroid ( ) const
inline

Get whether the centroid is valid.

Definition at line 63 of file kde_stat.hpp.


The documentation for this class was generated from the following file:
  • /home/ryan/src/mlpack.org/_src/mlpack-3.1.1/src/mlpack/methods/kde/kde_stat.hpp