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