X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=mothur.h;h=50344e24bfea85e8b7c4b829b5136e3e63d34fc7;hb=16abd6271c455bd01b34ff89a2e3641bef0fa128;hp=53074eb1e146f28af23a87e6888d57bfaa5184fa;hpb=64581f6d0e63e67d4e119601bea695ebb3f52a13;p=mothur.git diff --git a/mothur.h b/mothur.h index 53074eb..50344e2 100644 --- a/mothur.h +++ b/mothur.h @@ -72,6 +72,8 @@ #include #include #include + #include + #endif using namespace std; @@ -83,6 +85,7 @@ using namespace std; #define isnan(x) ((x) != (x)) #define isinf(x) (fabs(x) == std::numeric_limits::infinity()) + typedef unsigned long ull; struct IntNode { @@ -103,6 +106,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; @@ -186,7 +202,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