#include <bradleyTerry.h>
Definition at line 13 of file bradleyTerry.h.
◆ valarray_t
◆ BradleyTerry()
osl::rating::BradleyTerry::BradleyTerry |
( |
FeatureSet & |
features, |
|
|
const std::string & |
kisen_file, |
|
|
int |
kisen_start = 0 |
|
) |
| |
◆ ~BradleyTerry()
osl::rating::BradleyTerry::~BradleyTerry |
( |
| ) |
|
◆ accumulate()
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 |
Definition at line 99 of file bradleyTerry.cc.
References addSquare(), osl::BLACK, features, osl::rating::FeatureSet::featureSize(), osl::checkmate::ImmediateCheckmate::hasCheckmateMove(), osl::record::KisenFile::ipxFileName(), kisen_filename, kisen_start, osl::rating::RatingEnv::make(), min_rating, update(), and osl::WHITE.
Referenced by osl::rating::BradleyTerry::Thread::operator()(), and update().
◆ addSquare()
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 |
Definition at line 25 of file bradleyTerry.cc.
References 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(), and osl::rating::FeatureSet::weight().
Referenced by accumulate(), setMinRating(), and ~BradleyTerry().
◆ iterate()
void osl::rating::BradleyTerry::iterate |
( |
| ) |
|
◆ setFixGroup()
void osl::rating::BradleyTerry::setFixGroup |
( |
int |
new_fix_group | ) |
|
|
inline |
◆ setMinRating()
void osl::rating::BradleyTerry::setMinRating |
( |
int |
new_min | ) |
|
|
inline |
◆ setNumCpus()
void osl::rating::BradleyTerry::setNumCpus |
( |
int |
new_num_cpus | ) |
|
|
inline |
◆ setNumRecords()
void osl::rating::BradleyTerry::setNumRecords |
( |
size_t |
new_num_records | ) |
|
|
inline |
◆ setOutputDirectory()
void osl::rating::BradleyTerry::setOutputDirectory |
( |
const std::string & |
new_output | ) |
|
|
inline |
◆ setVerbose()
void osl::rating::BradleyTerry::setVerbose |
( |
int |
new_verbose | ) |
|
|
inline |
◆ update()
void osl::rating::BradleyTerry::update |
( |
size_t |
g | ) |
|
|
private |
Definition at line 137 of file bradleyTerry.cc.
References accumulate(), osl::rating::FeatureSet::feature(), features, osl::rating::FeatureSet::featureSize(), iterate(), kisen_filename, osl::rating::Feature::name(), num_cpus, num_records, osl::rating::FeatureSet::range(), osl::rating::FeatureSet::setWeight(), osl::rating::FeatureSet::showGroup(), Thread, and osl::rating::FeatureSet::weight().
Referenced by accumulate(), iterate(), and setMinRating().
◆ Thread
◆ features
◆ fix_group
int osl::rating::BradleyTerry::fix_group |
|
private |
◆ kisen_filename
std::string osl::rating::BradleyTerry::kisen_filename |
|
private |
◆ kisen_start
int osl::rating::BradleyTerry::kisen_start |
|
private |
◆ min_rating
size_t osl::rating::BradleyTerry::min_rating |
|
private |
◆ num_cpus
size_t osl::rating::BradleyTerry::num_cpus |
|
private |
◆ num_records
size_t osl::rating::BradleyTerry::num_records |
|
private |
◆ output_directory
std::string osl::rating::BradleyTerry::output_directory |
|
private |
◆ verbose
int osl::rating::BradleyTerry::verbose |
|
private |
The documentation for this class was generated from the following files: