Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAles Tamchyna <tamchyna@ufal.mff.cuni.cz>2015-01-06 12:57:38 +0300
committerAles Tamchyna <tamchyna@ufal.mff.cuni.cz>2015-01-06 12:57:38 +0300
commitc6f9a332f7411eabb463837fa2b3bb2946b06a71 (patch)
tree77bdfe287efebdfae5746a3a107658714feba56d /moses/Util.h
parent416c819f799654a6d2a798c8803ad8a610aa06d2 (diff)
minor
Diffstat (limited to 'moses/Util.h')
-rw-r--r--moses/Util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/moses/Util.h b/moses/Util.h
index 11a929b68..a595e9a3f 100644
--- a/moses/Util.h
+++ b/moses/Util.h
@@ -483,6 +483,9 @@ T log_sum (T log_a, T log_b)
return ( v );
}
+/**
+ * Compare floats for equality with some tolerance.
+ */
inline bool Equals(float a, float b)
{
return fabs(a - b) < FLOAT_EPSILON;