X-Boost  2.3.8
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
DecisionTree< T, DataType > Class Template Reference

#include <DecisionTree.h>

Public Types

typedef DecisionTree< typename
T::OptimizedType, DataType > 
OptimizedType
 

Public Member Functions

template<class P1 , class SrcFeature >
 DecisionTree (const DecisionTree< SrcFeature, DataType > &src, const P1 &p1)
 Copy & convert constructor.
 
template<class P1 , class P2 , class SrcFeature >
 DecisionTree (const DecisionTree< SrcFeature, DataType > &src, P1 p1, const P2 &p2)
 Copy & convert constructor.
 
template<class P1 , class P2 , class P3 >
 DecisionTree (const DecisionTree< T, DataType > &src, P1 p1, P2 p2, P3 p3)
 Copy & convert constructor.
 
 DecisionTree (const DecisionTree< T, DataType > &src)
 
void operator= (const DecisionTree< T > &src)
 
 DecisionTree (std::istream &in)
 
bool load (std::istream &in)
 
void save (std::ostream &out) const
 
template<class FeatureType >
bool export_features (std::vector< FeatureType > &out) const
 
template<class Param1 >
float classify (const unsigned int *image, Param1 stride) const
 perform the classification stage (1 params)
 
float classify (const unsigned int *image) const
 perform the classification stage (no params)
 
template<class Param1 >
float operator() (const unsigned int *image, Param1 stride) const
 
float operator() (const unsigned int *image) const
 
void scale_response (float factor)
 scale the response of the decision tree
 
float MeasureAvgDepth () const
 estimate the number of layer evaluated (roughly)
 
void Discrete ()
 transform a Probabilistic Decision Tree in a Discrete Decision Tree
 
float getAlpha () const
 MMMMH?
 

Static Public Member Functions

static std::string signature ()
 
static float max_response ()
 internally normalized
 

Public Attributes

classifier
 a feature extractor
 
DataType th
 Classifier Threshold.
 
DecisionTree< T, DataType > * left
 sub-nodes (if null is a leaf)
 
DecisionTree< T, DataType > * right
 
float category
 if there are not subnodes, this value -1 .. 1 return the class and probability
 

Static Public Attributes

static const ClassifierType Type = RealClassifier
 DecisionTree is (generic) a RealClassifier.
 

Detailed Description

template<class T, class DataType = int>
class DecisionTree< T, DataType >

A decision Tree. If has some sub nodes,uses th to split in them. If not have subnodes, report the category


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