X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=sabundvector.hpp;h=666e94f4db598b9bf1589bf8288fed75e221bdc3;hp=bd657aa20d41f3f1ae3d9f757ebd87c04de36270;hb=cf9987b67aa49777a4c91c2d21f96e58bf17aa82;hpb=eb1c88346fb246e95a6b38935b103f95e38b82ca diff --git a/sabundvector.hpp b/sabundvector.hpp index bd657aa..666e94f 100644 --- a/sabundvector.hpp +++ b/sabundvector.hpp @@ -1,15 +1,14 @@ #ifndef SABUND_H #define SABUND_H -using namespace std; - #include "datavector.hpp" #include "rabundvector.hpp" #include "ordervector.hpp" #include "calculator.h" -/* This class is a child to datavector. It represents OTU information at a certain distance. +/* Data Structure for a sabund file. + This class is a child to datavector. It represents OTU information at a certain distance. A sabundvector can be converted into and ordervector, listvector or rabundvector. Each member of the internal container "data" represents the number of OTU's with that many members, but staring at 1. So data[1] = 2, because there are two OTUs with 1 member. @@ -42,6 +41,7 @@ public: int sum(); void resize(int); int size(); + void clear(); void print(ostream&); void print(string, ostream&);