mlpack  1.0.12
statistic.hpp
Go to the documentation of this file.
1 
16 #ifndef __MLPACK_CORE_TREE_STATISTIC_HPP
17 #define __MLPACK_CORE_TREE_STATISTIC_HPP
18 
19 namespace mlpack {
20 namespace tree {
21 
27 {
28  public:
31 
39  template<typename TreeType>
40  EmptyStatistic(TreeType& /* node */) { }
41 
42  public:
46  std::string ToString() const
47  {
48  std::stringstream convert;
49  convert << "EmptyStatistic [" << this << "]" << std::endl;
50  return convert.str();
51  }
52 };
53 
54 }; // namespace tree
55 }; // namespace mlpack
56 
57 #endif // __MLPACK_CORE_TREE_STATISTIC_HPP
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: load.hpp:23
EmptyStatistic(TreeType &)
This constructor is called when a node is finished being created.
Definition: statistic.hpp:40
std::string ToString() const
Returns a string representation of this object.
Definition: statistic.hpp:46
Empty statistic if you are not interested in storing statistics in your tree.
Definition: statistic.hpp:26