]> git.donarmstrong.com Git - mothur.git/blob - sharednseqs.h
added nseqs and sharednseqs calculators, removed excess tabs in output files.
[mothur.git] / sharednseqs.h
1 #ifndef SHAREDNSEQS_H
2 #define SHAREDNSEQS_H
3
4 /*
5  *  sharednseqs.h
6  *  Mothur
7  *
8  *  Created by Sarah Westcott on 3/16/09.
9  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
10  *
11  */
12
13
14
15
16 #include "calculator.h"
17
18 /***********************************************************************/
19 class SharedNSeqs : public Calculator {
20
21 public:
22         SharedNSeqs() : Calculator("SharedNSeqs", 1) {};
23         EstOutput getValues(SAbundVector* rank){ return data; };
24         EstOutput getValues(SharedRAbundVector* shared1, SharedRAbundVector* shared2) {
25                 data.resize(1,0);
26                 data[0] = (double)shared1->getNumSeqs() + (double)shared2->getNumSeqs();
27                 return data;
28         }
29 };
30
31 /***********************************************************************/
32
33 #endif