From 5c9feedda48f5f64482204a615cd17b79bd60bac Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 2 Jan 2014 15:31:43 +0000 Subject: [PATCH] Fix exp2l using in inv_ch_square function. --- src/classifiers/bayes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classifiers/bayes.c b/src/classifiers/bayes.c index ae291de24..554fc777c 100644 --- a/src/classifiers/bayes.c +++ b/src/classifiers/bayes.c @@ -124,7 +124,7 @@ inv_chi_square (gdouble value, gint freedom_deg) #ifdef HAVE_EXPL prob = expl (-value); #elif defined(HAVE_EXP2L) - prob = exp2l (-value); + prob = exp2l (-value * log2 (M_E)); #else prob = exp (-value); #endif -- 2.39.5