#include "osl/rating/featureSet.h"
#include "osl/rating/ratingEnv.h"
#include "osl/effect_util/effectUtil.h"
#include "osl/state/numEffectState.h"
#include "osl/stl/vector.h"
#include "osl/record/csa.h"
#include "osl/record/kisen.h"
#include "osl/progress/effect5x3.h"
#include "osl/stat/average.h"
#include "osl/stat/histogram.h"
#include <iostream>
#include <cmath>
Go to the source code of this file.
Functions | |
void | show (const NumEffectState &, Move, const progress::Effect5x3 &progress) |
void | show_statistics () |
int | main () |
vector< double > | rating_to_probability (const RatedMoveVector &moves) |
Variables | |
int | verbose = 0 |
const char * | kisen_filename ="0.kif" |
size_t | num_kisen = 4096 |
double | verbose_limit = 0 |
stat::Average | top_rated [16] |
stat::Histogram | histogram (1, 10, 0, true) |
int main | ( | ) |
Definition at line 26 of file probability.cc.
References osl::alt(), kisen_filename, osl::rating::RatingEnv::make(), moves, num_kisen, osl::record::csa::show(), show_statistics(), osl::rating::RatingEnv::update(), and osl::progress::Effect5x3::update().
vector<double> rating_to_probability | ( | const RatedMoveVector & | moves) |
void show | ( | const NumEffectState & | state, |
Move | next, | ||
const progress::Effect5x3 & | progress | ||
) |
Definition at line 66 of file probability.cc.
References osl::stat::Average::add(), osl::stat::Histogram::add(), feature_set(), osl::rating::RatedMoveVector::find(), osl::rating::FeatureSet::generateRating(), histogram, osl::rating::RatingEnv::make(), moves, osl::progress::Effect5x3::progress16(), rating_to_probability(), osl::record::csa::show(), top_rated, osl::progress::Progress16::value(), verbose, and verbose_limit.
void show_statistics | ( | ) |
stat::Histogram histogram(1, 10, 0, true) |
Referenced by show().
const char* kisen_filename ="0.kif" |
Definition at line 19 of file probability.cc.
Referenced by osl::rating::BradleyTerry::accumulate(), main(), and osl::rating::BradleyTerry::update().
size_t num_kisen = 4096 |
Definition at line 20 of file probability.cc.
Referenced by main().
stat::Average top_rated[16] |
Definition at line 63 of file probability.cc.
Referenced by show(), and show_statistics().
int verbose = 0 |
Definition at line 18 of file probability.cc.
double verbose_limit = 0 |
Definition at line 21 of file probability.cc.
Referenced by show().