diff options
author | jfouet <jfouet@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-05-16 11:09:15 +0400 |
---|---|---|
committer | jfouet <jfouet@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-05-16 11:09:15 +0400 |
commit | bb42cb0dd591fa91d3ae63a2380a1ba6caed83a2 (patch) | |
tree | 1b43a912453ae087e6b6347a3fef2978c3ccc570 /mert/Point.cpp | |
parent | ad79af41dfb7160c11521bdae1b1e3db63d18a56 (diff) |
bugfixes+ introduction of verbose level
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1723 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'mert/Point.cpp')
-rw-r--r-- | mert/Point.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mert/Point.cpp b/mert/Point.cpp index f1b41f500..2fc365baf 100644 --- a/mert/Point.cpp +++ b/mert/Point.cpp @@ -15,7 +15,7 @@ unsigned Point::ncall=0; void Point::Randomize(const parameters_t& min,const parameters_t& max){ for (int i=0; i<size(); i++) - operator[](i)= min[i] + (float)random()/RAND_MAX * (max[i]-min[i]); + operator[](i)= min[i] + (float)random()/(float)RAND_MAX * (float)(max[i]-min[i]); } void Point::Normalize(){ |