1 /************************************************************** 2 *** RHmm package 3 *** 4 *** File: LogProb.h 5 *** 6 *** Author: Ollivier TARAMASCO <Ollivier.Taramasco@imag.fr> 7 *** Author: Sebastian BAUER <sebastian.bauer@charite.de> 8 *** 9 **************************************************************/ 10 11 #ifndef _LOGPROB_H_ 12 #define _LOGPROB_H_ 13 #include <cfloat> 14 #include <cmath> 15 #include "math.h" 16 #define LOGZERO -DBL_MAX 17 #ifndef MIN 18 #define MIN(p,q) ((p) < (q) ? (p) : (q)) 19 #endif //MIN 20 #ifndef MAX 21 #define MAX(p,q) ((p) > (q) ? (p) : (q)) 22 #endif //MAX 23 extern double eexp(const double theX) ; 24 extern double eln(const double theX) ; 25 extern double elnsum(const double theX, const double theY) ; 26 extern double elnproduct(const double theX, const double theY) ; 27 28 #endif // _LOGPROB_H_ 29 30 31