MLPACK  1.0.8
statistic.hpp
Go to the documentation of this file.
1 
24 #ifndef __MLPACK_CORE_TREE_STATISTIC_HPP
25 #define __MLPACK_CORE_TREE_STATISTIC_HPP
26 
27 namespace mlpack {
28 namespace tree {
29 
35 {
36  public:
39 
47  template<typename TreeType>
48  EmptyStatistic(TreeType& /* node */) { }
49 
50  public:
54  std::string ToString() const
55  {
56  std::stringstream convert;
57  convert << "EmptyStatistic [" << this << "]" << std::endl;
58  return convert.str();
59  }
60 };
61 
62 }; // namespace tree
63 }; // namespace mlpack
64 
65 #endif // __MLPACK_CORE_TREE_STATISTIC_HPP
EmptyStatistic(TreeType &)
This constructor is called when a node is finished being created.
Definition: statistic.hpp:48
std::string ToString() const
Returns a string representation of this object.
Definition: statistic.hpp:54
Empty statistic if you are not interested in storing statistics in your tree.
Definition: statistic.hpp:34