diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2011-11-12 11:50:18 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2011-11-12 11:50:18 +0400 |
commit | ae9701ff7758bc7a8a1238278f823b234c16a697 (patch) | |
tree | ff474e5f76203a660da1a787ebd3d6871b86544d /mert/Point.cpp | |
parent | df0874df89429dc940df75b125a02362e3b1b539 (diff) |
Fix initialization of score_, and add destructor.
Diffstat (limited to 'mert/Point.cpp')
-rw-r--r-- | mert/Point.cpp | 6 |
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); |