bigramGroup.h
Go to the documentation of this file.
/* bigramGroup.h
*/
#ifndef _BIGRAMGROUP_H
#define _BIGRAMGROUP_H
#include "osl/rating/group.h"
#include "osl/rating/feature/bigramAttack.h"
namespace osl
{
namespace rating
{
class BigramAttackGroup : public Group
{
bool same, focus_x;
public:
static std::string name(bool same, bool focus_x);
BigramAttackGroup(bool same, bool focus_x);
void show(std::ostream& os, int name_width, const range_t& range,
const std::vector<double>& weights) const
{
showTopN(os, name_width, range, weights, 3);
}
int findMatch(const NumEffectState& state, Move m, const RatingEnv& env) const;
};
}
}
#endif /* _BIGRAMGROUP_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
bigramAttack.h
osl::Move
圧縮していない moveの表現 .
Definition basic_type.h:1052
osl::NumEffectState
利きを持つ局面
Definition numEffectState.h:34
osl::rating::BigramAttackGroup::focus_x
bool focus_x
Definition bigramGroup.h:15
osl::rating::BigramAttackGroup::findMatch
int findMatch(const NumEffectState &state, Move m, const RatingEnv &env) const
Definition bigramGroup.cc:29
osl::rating::BigramAttackGroup::show
void show(std::ostream &os, int name_width, const range_t &range, const std::vector< double > &weights) const
Definition bigramGroup.h:20
osl::rating::BigramAttackGroup::same
bool same
Definition bigramGroup.h:15
osl::rating::BigramAttackGroup::BigramAttackGroup
BigramAttackGroup(bool same, bool focus_x)
Definition bigramGroup.cc:13
osl::rating::BigramAttackGroup::name
static std::string name(bool same, bool focus_x)
Definition bigramGroup.cc:6
osl::rating::Group::showTopN
void showTopN(std::ostream &os, int name_width, const range_t &range, const std::vector< double > &weights, int n) const
Definition group.cc:100
osl::rating::Group::Group
Group(const std::string &name)
Definition group.cc:15
osl::rating::RatingEnv
Definition ratingEnv.h:16
group.h
osl::rating
Definition construct.h:18
osl::rating::range_t
std::pair< int, int > range_t
Definition range.h:10
osl
Definition additionalEffect.h:6