X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=sharednseqs.h;fp=sharednseqs.h;h=f2ac5a7ee180152473d4233b52bdfd4fe3bd336c;hb=9ca2caadbeac83bb84b3330d9204b1b659d62941;hp=0000000000000000000000000000000000000000;hpb=42b802c0006d8b13bd5b27ea48d032a85d3f2102;p=mothur.git diff --git a/sharednseqs.h b/sharednseqs.h new file mode 100644 index 0000000..f2ac5a7 --- /dev/null +++ b/sharednseqs.h @@ -0,0 +1,33 @@ +#ifndef SHAREDNSEQS_H +#define SHAREDNSEQS_H + +/* + * sharednseqs.h + * Mothur + * + * Created by Sarah Westcott on 3/16/09. + * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved. + * + */ + + + + +#include "calculator.h" + +/***********************************************************************/ +class SharedNSeqs : public Calculator { + +public: + SharedNSeqs() : Calculator("SharedNSeqs", 1) {}; + EstOutput getValues(SAbundVector* rank){ return data; }; + EstOutput getValues(SharedRAbundVector* shared1, SharedRAbundVector* shared2) { + data.resize(1,0); + data[0] = (double)shared1->getNumSeqs() + (double)shared2->getNumSeqs(); + return data; + } +}; + +/***********************************************************************/ + +#endif