diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-29 21:16:15 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-29 21:16:15 +0400 |
commit | 6249432407af8730c10bccc7894c0725fcaf5e47 (patch) | |
tree | 3ac1f094b9fdc199b04bc5ef209ce00e3596e37d /mert/Point.h | |
parent | 59bd7deb4b6b9c4f7b3b7dbb055783528fbc31ca (diff) |
beautify
Diffstat (limited to 'mert/Point.h')
-rw-r--r-- | mert/Point.h | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/mert/Point.h b/mert/Point.h index 92cb832dd..f53f5f982 100644 --- a/mert/Point.h +++ b/mert/Point.h @@ -8,7 +8,7 @@ namespace MosesTuning { - + class FeatureStats; class Optimizer; @@ -53,11 +53,19 @@ private: statscore_t m_score; public: - static unsigned int getdim() { return m_dim; } - static void setdim(std::size_t d) { m_dim = d; } + static unsigned int getdim() { + return m_dim; + } + static void setdim(std::size_t d) { + m_dim = d; + } - static unsigned int getpdim() { return m_pdim; } - static void setpdim(std::size_t pd) { m_pdim = pd; } + static unsigned int getpdim() { + return m_pdim; + } + static void setpdim(std::size_t pd) { + m_pdim = pd; + } static void set_optindices(const std::vector<unsigned int>& indices) { m_opt_indices = indices; @@ -90,7 +98,9 @@ public: */ friend std::ostream& operator<<(std::ostream& o,const Point& P); - void Normalize() { NormalizeL2(); } + void Normalize() { + NormalizeL2(); + } void NormalizeL2(); void NormalizeL1(); @@ -100,8 +110,12 @@ public: */ void GetAllWeights(std::vector<parameter_t>& w) const; - statscore_t GetScore() const { return m_score; } - void SetScore(statscore_t score) { m_score = score; } + statscore_t GetScore() const { + return m_score; + } + void SetScore(statscore_t score) { + m_score = score; + } }; } |