]> git.donarmstrong.com Git - mothur.git/blobdiff - distancedb.hpp
added otu.association command. added calcSpearman, calcKendall and calcPearson functi...
[mothur.git] / distancedb.hpp
index 01fea59aeec3b340041fea68e26120cfd307a873..d7e05db85afed819b9f2d26c99d06c1426ca19f9 100644 (file)
@@ -19,12 +19,19 @@ class DistanceDB : public Database {
 public:
        
        DistanceDB();
-       ~DistanceDB() {}
+       DistanceDB(const DistanceDB& ddb); 
+       ~DistanceDB() { delete distCalculator; }
        
        void generateDB() {} //doesn't generate a search db 
-       void addSequence(Sequence);  
+       void addSequence(Sequence); 
+       string getName(int i) { return data[i].getName(); } 
        vector<int> findClosestSequences(Sequence*, int);  // returns indexes of n closest sequences to query
        
+       #ifdef USE_MPI  
+       int MPISend(int) {return 0;}
+       int MPIRecv(int) {return 0;}
+       #endif
+       
 private:
        vector<Sequence> data;
        Dist* distCalculator;