]> git.donarmstrong.com Git - mothur.git/blob - sharednseqs.h
started shared utilities, updates to venn and heatmap added tree.groups command
[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 #include "calculator.h"
14
15 /***********************************************************************/
16 class SharedNSeqs : public Calculator {
17
18 public:
19         SharedNSeqs() : Calculator("SharedNSeqs", 1) {};
20         EstOutput getValues(SAbundVector* rank){ return data; };
21         EstOutput getValues(SharedRAbundVector* shared1, SharedRAbundVector* shared2) {
22                 data.resize(1,0);
23                 data[0] = (double)shared1->getNumSeqs() + (double)shared2->getNumSeqs();
24                 return data;
25         }
26 };
27
28 /***********************************************************************/
29
30 #endif