00001
00002
00003 #ifndef _BIGRAMGROUP_H
00004 #define _BIGRAMGROUP_H
00005
00006 #include "osl/rating/group.h"
00007 #include "osl/rating/feature/bigramAttack.h"
00008
00009 namespace osl
00010 {
00011 namespace rating
00012 {
00013 class BigramAttackGroup : public Group
00014 {
00015 bool same, focus_x;
00016 public:
00017 static std::string name(bool same, bool focus_x);
00018 BigramAttackGroup(bool same, bool focus_x);
00019
00020 void show(std::ostream& os, int name_width, const range_t& range,
00021 const vector<double>& weights) const
00022 {
00023 showTopN(os, name_width, range, weights, 3);
00024 }
00025 int findMatch(const NumEffectState& state, Move m, const RatingEnv& env) const;
00026 };
00027 }
00028 }
00029
00030
00031 #endif
00032
00033
00034
00035