Main Page | Class Hierarchy | Class List | File List | Class Members

dtree.h

00001 
00002 // Copyright (c) 2003, The Institute for Genomic Research (TIGR), Rockville,
00003 // Maryland, U.S.A.  All rights reserved.
00005 #ifndef DTREE_H
00006 #define DTREE_H
00007 
00008 #include <string>
00009 #include "FeatVec.h"
00010 #include <vector>
00011 class ostream;
00012 class DataDescrip;
00013 
00014 class DTree {
00015  public:
00019   DTree(const string&,const string&, const DataDescrip&,int);
00020   double eval(const vector<FeatVec*>&) const;
00021   int getClusterId(const vector<FeatVec*>&, const vector<double>&) const;
00022   int getNumClusters() const { return _numClus; }
00023   struct tree_node** getRoot() { return _root;}
00024  private:
00025   unsigned getNumDt() const;
00026 
00027  private:
00028   
00029   struct tree_node** _root;
00030   unsigned _numDt;
00031   int _numClus;
00032 };
00033 
00034 #endif // DTREE_H