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:
authorTetsuo Kiso <tetsuo-s@is.naist.jp>2011-11-12 11:50:18 +0400
committerTetsuo Kiso <tetsuo-s@is.naist.jp>2011-11-12 11:50:18 +0400
commitae9701ff7758bc7a8a1238278f823b234c16a697 (patch)
treeff474e5f76203a660da1a787ebd3d6871b86544d /mert/Point.cpp
parentdf0874df89429dc940df75b125a02362e3b1b539 (diff)
Fix initialization of score_, and add destructor.
Diffstat (limited to 'mert/Point.cpp')
-rw-r--r--mert/Point.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/mert/Point.cpp b/mert/Point.cpp
index 58f1e4fb1..a21c754fb 100644
--- a/mert/Point.cpp
+++ b/mert/Point.cpp
@@ -17,11 +17,13 @@ unsigned Point::ncall = 0;
vector<parameter_t> Point::m_min;
vector<parameter_t> Point::m_max;
+Point::Point() : vector<parameter_t>(dim), score_(0.0) {}
+
//Can initialize from a vector of dim or pdim
Point::Point(const vector<parameter_t>& init,
const vector<parameter_t>& min,
const vector<parameter_t>& max)
- : vector<parameter_t>(Point::dim), score_(0.0f)
+ : vector<parameter_t>(Point::dim), score_(0.0)
{
m_min.resize(Point::dim);
m_max.resize(Point::dim);
@@ -41,6 +43,8 @@ Point::Point(const vector<parameter_t>& init,
}
}
+Point::~Point() {}
+
void Point::Randomize()
{
assert(m_min.size()==Point::dim);