X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sabundvector.hpp;fp=sabundvector.hpp;h=3c68462a425b5f1710f679c4272c4b5e6e6c7877;hb=fd282e6b4be2560f5b1bd154a9e8d24b798eefaf;hp=f45ef609515321a74b9bbf98d7f7b4fcbdb9512d;hpb=67b6343929b6dbed97c4b26c3bb849725d573f6d;p=mothur.git diff --git a/sabundvector.hpp b/sabundvector.hpp index f45ef60..3c68462 100644 --- a/sabundvector.hpp +++ b/sabundvector.hpp @@ -7,6 +7,17 @@ using namespace std; #include "rabundvector.hpp" #include "ordervector.hpp" + +/* 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. + example: listvector = a,b,c,d,e,f g,h,i j,k l m + rabundvector = 6 3 2 1 1 + sabundvector = 2 1 1 0 0 1 + ordervector = 1 1 1 1 1 1 2 2 2 3 3 4 5 */ + + class SAbundVector : public DataVector { public: