X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=mothur.h;h=50344e24bfea85e8b7c4b829b5136e3e63d34fc7;hb=2bb9267aa4b4ecdf8488b06605cc9f3f36fa4332;hp=f8ec32363516bcc6543569b57f313505796acef7;hpb=fc1ed1ae1b022719176910ab71993bd6535810ad;p=mothur.git diff --git a/mothur.h b/mothur.h index f8ec323..50344e2 100644 --- a/mothur.h +++ b/mothur.h @@ -85,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 { @@ -105,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; @@ -188,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