MLPACK  1.0.4
Public Member Functions
mlpack::tree::EmptyStatistic Class Reference

Empty statistic if you are not interested in storing statistics in your tree. More...

List of all members.

Public Member Functions

 EmptyStatistic ()
template<typename MatType >
 EmptyStatistic (const MatType &, const size_t, const size_t)
 This constructor is called when a leaf is created.
template<typename MatType >
 EmptyStatistic (const MatType &, const size_t, const size_t, const EmptyStatistic &, const EmptyStatistic &)
 This constructor is called when a non-leaf node is created.
 ~EmptyStatistic ()

Detailed Description

Empty statistic if you are not interested in storing statistics in your tree.

Use this as a template for your own.

Definition at line 34 of file statistic.hpp.


Constructor & Destructor Documentation

Definition at line 37 of file statistic.hpp.

Definition at line 38 of file statistic.hpp.

template<typename MatType >
mlpack::tree::EmptyStatistic::EmptyStatistic ( const MatType &  ,
const size_t  ,
const size_t   
) [inline]

This constructor is called when a leaf is created.

Parameters:
datasetMatrix that the tree is being built on.
beginStarting index corresponding to this leaf.
countNumber of points held in this leaf.

Definition at line 48 of file statistic.hpp.

template<typename MatType >
mlpack::tree::EmptyStatistic::EmptyStatistic ( const MatType &  ,
const size_t  ,
const size_t  ,
const EmptyStatistic ,
const EmptyStatistic  
) [inline]

This constructor is called when a non-leaf node is created.

This lets you build fast bottom-up statistics when building trees.

Parameters:
datasetMatrix that the tree is being built on.
beginStarting index corresponding to this leaf.
countNumber of points held in this leaf.
leftStatEmptyStatistic object of the left child node.
rightStatEmptyStatistic object of the right child node.

Definition at line 64 of file statistic.hpp.


The documentation for this class was generated from the following file: