X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=mothur.h;h=57b409e51605df2d0dbab805e3d8b1b7060e7b3e;hb=597560b3c23f03d0069082cf096ce65e0c087519;hp=f8ec32363516bcc6543569b57f313505796acef7;hpb=fc1ed1ae1b022719176910ab71993bd6535810ad;p=mothur.git diff --git a/mothur.h b/mothur.h index f8ec323..57b409e 100644 --- a/mothur.h +++ b/mothur.h @@ -42,6 +42,7 @@ #include #include #include +#include //misc #include @@ -85,6 +86,7 @@ using namespace std; #define isnan(x) ((x) != (x)) #define isinf(x) (fabs(x) == std::numeric_limits::infinity()) + typedef unsigned long ull; struct IntNode { @@ -105,6 +107,19 @@ struct ThreadNode { IntNode* right; }; +struct diffPair { + float prob; + float reverseProb; + + diffPair() { + prob = 0; reverseProb = 0; + } + diffPair(float p, float rp) { + prob = p; + reverseProb = rp; + } +}; + /************************************************************/ struct clusterNode { int numSeq; @@ -188,7 +203,8 @@ void convert(const string& s, T& x, bool failIfLeftoverChars = true){ throw BadConversion(s); } - +//********************************************************************************************************************** +template int sgn(T val){ return (val > T(0)) - (val < T(0)); } //********************************************************************************************************************** template