]> git.donarmstrong.com Git - mothur.git/blob - sharednseqs.h
fixes while testing 1.33.0
[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, false) {};
20         EstOutput getValues(SAbundVector* rank){ return data; };
21         EstOutput getValues(vector<SharedRAbundVector*> shared) {
22                 data.resize(1,0);
23                 data[0] = (double)shared[0]->getNumSeqs() + (double)shared[1]->getNumSeqs();
24                 return data;
25         }
26         string getCitation() { return "http://www.mothur.org/wiki/Sharednseqs"; }
27 };
28
29 /***********************************************************************/
30
31 #endif