00001 00002 #ifndef _PACKFREQ_H_ 00003 #define _PACKFREQ_H_ 00004 00005 00006 #include "packnode.h" 00007 #include "packcontainer.h" 00008 #include "packtree_base.h" 00009 #include "liftbase.h" 00010 #include "grow_array.h" 00011 00012 00044 00078 class packfreq : public packtree_base { 00079 private: 00081 GrowableArray<packnode<double> *> mat; 00082 00083 void findLevel( packnode<double>* top, 00084 size_t cur_level, 00085 const size_t level ); 00086 00087 protected: 00089 packfreq( const packfreq &rhs ) {}; 00091 packfreq() {}; 00092 00093 public: 00094 packfreq( const double *vec, 00095 const size_t n, 00096 liftbase<packcontainer, double> *w ); 00097 00099 ~packfreq() {} 00100 00101 void getLevel( const size_t level ); 00102 00103 void plotMat(const size_t N); 00104 00105 void prMat(); 00106 }; // packfreq 00107 00108 #endif