My Project
std
osl
rating
group
bigramGroup.h
Go to the documentation of this file.
1
/* bigramGroup.h
2
*/
3
#ifndef _BIGRAMGROUP_H
4
#define _BIGRAMGROUP_H
5
6
#include "
osl/rating/group.h
"
7
#include "
osl/rating/feature/bigramAttack.h
"
8
9
namespace
osl
10
{
11
namespace
rating
12
{
13
class
BigramAttackGroup
:
public
Group
14
{
15
bool
same
,
focus_x
;
16
public
:
17
static
std::string
name
(
bool
same
,
bool
focus_x
);
18
BigramAttackGroup
(
bool
same
,
bool
focus_x
);
19
20
void
show
(std::ostream& os,
int
name_width,
const
range_t
& range,
21
const
std::vector<double>& weights)
const
22
{
23
showTopN
(os, name_width, range, weights, 3);
24
}
25
int
findMatch
(
const
NumEffectState
& state,
Move
m,
const
RatingEnv
& env)
const
;
26
};
27
}
28
}
29
30
31
#endif
/* _BIGRAMGROUP_H */
32
// ;;; Local Variables:
33
// ;;; mode:c++
34
// ;;; c-basic-offset:2
35
// ;;; End:
group.h
osl::Move
圧縮していない moveの表現 .
Definition:
basic_type.h:1052
osl::rating::Group
mutually exclusive set of features
Definition:
group.h:17
osl::rating::BigramAttackGroup::same
bool same
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::range_t
std::pair< int, int > range_t
Definition:
range.h:10
bigramAttack.h
osl::rating::RatingEnv
Definition:
ratingEnv.h:16
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
Definition:
bigramGroup.h:14
osl::NumEffectState
利きを持つ局面
Definition:
numEffectState.h:34
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::BigramAttackGroup::focus_x
bool focus_x
Definition:
bigramGroup.h:15
osl::rating::BigramAttackGroup::BigramAttackGroup
BigramAttackGroup(bool same, bool focus_x)
Definition:
bigramGroup.cc:13
osl
Definition:
additionalEffect.h:6
Generated by
1.8.18