]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedjsd.h
added Jensen-Shannon calc. working on get.communitytype command. fixed bug in get...
[mothur.git] / sharedjsd.h
diff --git a/sharedjsd.h b/sharedjsd.h
new file mode 100644 (file)
index 0000000..cec0faa
--- /dev/null
@@ -0,0 +1,30 @@
+//
+//  sharedjsd.h
+//  Mothur
+//
+//  Created by SarahsWork on 12/9/13.
+//  Copyright (c) 2013 Schloss Lab. All rights reserved.
+//
+
+#ifndef Mothur_sharedjsd_h
+#define Mothur_sharedjsd_h
+
+#include "calculator.h"
+
+/***********************************************************************/
+//Jensen-Shannon divergence (JSD)
+class JSD : public Calculator  {
+       
+public:
+       JSD() :  Calculator("jsd", 1, false) {};
+       EstOutput getValues(SAbundVector*) {return data;};
+       EstOutput getValues(vector<SharedRAbundVector*>);
+       string getCitation() { return "http://www.mothur.org/wiki/JSD"; }
+private:
+       
+};
+
+/***********************************************************************/
+
+
+#endif