diff options
author | Hieu Hoang <hieuhoang@Hieus-MacBook.local> | 2011-12-12 17:48:42 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@Hieus-MacBook.local> | 2011-12-12 17:48:42 +0400 |
commit | 753eebd959673ffba4d4d44301955334f40156ab (patch) | |
tree | 14933af527fa33b63be235cc6c0c99b02e5bcd28 /mert/FeatureStats.cpp | |
parent | 8327cce73b48826accee4354f5da926b3dd80074 (diff) |
revert
Diffstat (limited to 'mert/FeatureStats.cpp')
-rw-r--r-- | mert/FeatureStats.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mert/FeatureStats.cpp b/mert/FeatureStats.cpp index e7682518c..a8f0f478b 100644 --- a/mert/FeatureStats.cpp +++ b/mert/FeatureStats.cpp @@ -218,3 +218,19 @@ ostream& operator<<(ostream& o, const FeatureStats& e) return o; } + +//ADEED_BY_TS +bool operator==(const FeatureStats& f1, const FeatureStats& f2) { + size_t size = f1.size(); + + if (size != f2.size()) + return false; + + for (size_t k=0; k < size; k++) { + if (f1.get(k) != f2.get(k)) + return false; + } + + return true; +} +//END_ADDED |