Main Page | Class List | File List | Class Members

tree_node.h

Go to the documentation of this file.
00001 00007 #ifndef _TREE_NODE_H_ 00008 #include "librf/types.h" 00009 #include <fstream> 00010 using namespace std; 00011 00012 namespace librf { 00013 00014 typedef enum {EMPTY, BUILD_ME, TERMINAL, SPLIT} NodeStatusType; 00015 00016 struct tree_node { 00018 tree_node() :status(EMPTY), 00019 label(99), 00020 attr(99), 00021 start(99), 00022 size(99), 00023 split_point(-999.0), 00024 entropy(-9999.0){} 00025 NodeStatusType status; 00026 uchar label; 00027 uint16 attr; 00028 uint16 start; 00029 uint16 size; 00030 float entropy; 00031 float split_point; 00032 uchar depth; 00033 00034 void write(ostream& o) const; 00035 void read(istream& i); 00036 }; 00037 } //namespace 00038 #endif

Generated on Mon Jan 8 23:19:06 2007 for librf by doxygen 1.3.7