#include <bradleyTerry.h>
構成 | |
class | Thread |
Public メソッド | |
BradleyTerry (FeatureSet &features, const std::string &kisen_file, int kisen_start=0) | |
~BradleyTerry () | |
void | setNumCpus (int new_num_cpus) |
void | setNumRecords (size_t new_num_records) |
void | setOutputDirectory (const std::string &new_output) |
void | setFixGroup (int new_fix_group) |
void | setVerbose (int new_verbose) |
void | setMinRating (int new_min) |
void | iterate () |
Private 型 | |
typedef std::valarray< double > | valarray_t |
Private メソッド | |
void | update (size_t g) |
bool | addSquare (size_t g, const NumEffectState &state, const RatingEnv &env, Move selected, valarray_t &wins, std::valarray< long double > &denominator) const |
size_t | accumulate (size_t g, size_t first, size_t last, valarray_t &wins, std::valarray< long double > &denominator) const |
Private 変数 | |
FeatureSet & | features |
std::string | kisen_filename |
std::string | output_directory |
int | kisen_start |
size_t | num_cpus |
size_t | num_records |
int | verbose |
int | fix_group |
size_t | min_rating |
フレンド | |
class | Thread |
bradleyTerry.h の 13 行で定義されています。
typedef std::valarray<double> osl::rating::BradleyTerry::valarray_t [private] |
bradleyTerry.h の 15 行で定義されています。
osl::rating::BradleyTerry::BradleyTerry | ( | FeatureSet & | features, | |
const std::string & | kisen_file, | |||
int | kisen_start = 0 | |||
) |
bradleyTerry.cc の 14 行で定義されています。
osl::rating::BradleyTerry::~BradleyTerry | ( | ) |
bradleyTerry.cc の 20 行で定義されています。
size_t osl::rating::BradleyTerry::accumulate | ( | size_t | g, | |
size_t | first, | |||
size_t | last, | |||
valarray_t & | wins, | |||
std::valarray< long double > & | denominator | |||
) | const [private] |
bool osl::rating::BradleyTerry::addSquare | ( | size_t | g, | |
const NumEffectState & | state, | |||
const RatingEnv & | env, | |||
Move | selected, | |||
valarray_t & | wins, | |||
std::valarray< long double > & | denominator | |||
) | const [private] |
bradleyTerry.cc の 25 行で定義されています。
参照先 osl::rating::FeatureSet::effectiveInCheck(), features, osl::rating::Group::findMatch(), osl::NumEffectState::generateLegal(), osl::rating::FeatureSet::group(), osl::rating::FeatureSet::groupSize(), osl::FixedCapacityVector< T, Capacity >::isMember(), osl::rating::FeatureSet::range(), osl::FixedCapacityVector< T, Capacity >::size(), osl::SimpleState::turn(), と osl::rating::FeatureSet::weight().
参照元 accumulate().
void osl::rating::BradleyTerry::iterate | ( | ) |
bradleyTerry.cc の 189 行で定義されています。
参照先 features, fix_group, osl::rating::FeatureSet::groupSize(), output_directory, osl::rating::FeatureSet::save(), と update().
void osl::rating::BradleyTerry::setFixGroup | ( | int | new_fix_group | ) | [inline] |
bradleyTerry.h の 31 行で定義されています。
参照先 fix_group.
void osl::rating::BradleyTerry::setMinRating | ( | int | new_min | ) | [inline] |
bradleyTerry.h の 33 行で定義されています。
参照先 min_rating.
void osl::rating::BradleyTerry::setNumCpus | ( | int | new_num_cpus | ) | [inline] |
bradleyTerry.h の 28 行で定義されています。
参照先 num_cpus.
void osl::rating::BradleyTerry::setNumRecords | ( | size_t | new_num_records | ) | [inline] |
bradleyTerry.h の 29 行で定義されています。
参照先 num_records.
void osl::rating::BradleyTerry::setOutputDirectory | ( | const std::string & | new_output | ) | [inline] |
bradleyTerry.h の 30 行で定義されています。
参照先 output_directory.
void osl::rating::BradleyTerry::setVerbose | ( | int | new_verbose | ) | [inline] |
bradleyTerry.h の 32 行で定義されています。
参照先 verbose.
void osl::rating::BradleyTerry::update | ( | size_t | g | ) | [private] |
bradleyTerry.cc の 137 行で定義されています。
参照先 accumulate(), osl::rating::FeatureSet::feature(), features, osl::rating::FeatureSet::featureSize(), kisen_filename, osl::rating::Feature::name(), num_cpus, num_records, osl::rating::FeatureSet::range(), osl::rating::FeatureSet::setWeight(), osl::rating::FeatureSet::showGroup(), Thread, と osl::rating::FeatureSet::weight().
参照元 iterate().
friend class Thread [friend] |
bradleyTerry.h の 42 行で定義されています。
参照元 update().
FeatureSet& osl::rating::BradleyTerry::features [private] |
bradleyTerry.h の 16 行で定義されています。
参照元 accumulate(), addSquare(), iterate(), と update().
int osl::rating::BradleyTerry::fix_group [private] |
bradleyTerry.h の 22 行で定義されています。
参照元 iterate(), と setFixGroup().
std::string osl::rating::BradleyTerry::kisen_filename [private] |
bradleyTerry.h の 18 行で定義されています。
参照元 accumulate(), と update().
int osl::rating::BradleyTerry::kisen_start [private] |
bradleyTerry.h の 19 行で定義されています。
参照元 accumulate().
size_t osl::rating::BradleyTerry::min_rating [private] |
bradleyTerry.h の 23 行で定義されています。
参照元 accumulate(), と setMinRating().
size_t osl::rating::BradleyTerry::num_cpus [private] |
bradleyTerry.h の 20 行で定義されています。
参照元 setNumCpus(), と update().
size_t osl::rating::BradleyTerry::num_records [private] |
bradleyTerry.h の 20 行で定義されています。
参照元 setNumRecords(), と update().
std::string osl::rating::BradleyTerry::output_directory [private] |
bradleyTerry.h の 18 行で定義されています。
参照元 iterate(), と setOutputDirectory().
int osl::rating::BradleyTerry::verbose [private] |
bradleyTerry.h の 21 行で定義されています。
参照元 setVerbose().