]> git.donarmstrong.com Git - mothur.git/blobdiff - randomnumber.h
added sparcc command. fixed bug in remove.groups that removed all groups if you...
[mothur.git] / randomnumber.h
diff --git a/randomnumber.h b/randomnumber.h
new file mode 100644 (file)
index 0000000..59f94de
--- /dev/null
@@ -0,0 +1,34 @@
+#ifndef RANDOMNUMBER
+#define RANDOMNUMBER
+
+/*
+ *  randomnumber.h
+ *  
+ *
+ *  Created by Pat Schloss on 7/6/11.
+ *  Copyright 2011 Patrick D. Schloss. All rights reserved.
+ *
+ */
+
+
+/**************************************************************************************************/
+
+#include "mothur.h"
+
+/**************************************************************************************************/
+
+class RandomNumberGenerator {
+       
+public:
+       RandomNumberGenerator();
+    float randomUniform();
+       float randomExp();
+       float randomNorm();
+       float randomGamma(float);
+       vector<float> randomDirichlet(vector<float> alphas);
+       
+};
+
+/**************************************************************************************************/
+
+#endif