ratingstat.cc

#include "osl/rating/featureSet.h"
#include "osl/rating/ratingEnv.h"
#include "osl/rating/bradleyTerry.h"
#include "osl/eval/progressEval.h"
#include "osl/effect_util/effectUtil.h"
#include "osl/record/csaRecord.h"
#include "osl/record/csaIOError.h"
#include "osl/record/kisen.h"
#include "osl/apply_move/applyMove.h"
#include "osl/misc/perfmon.h"
#include "osl/stat/histogram.h"
#include "osl/stat/variance.h"
#include "osl/stl/vector.h"
#include <boost/format.hpp>
#include <string>
#include <iostream>
#include <iomanip>
#include <cmath>

ratingstat.ccのインクルード依存関係図

ソースコードを見る。

ネームスペース

namespace  osl

構成

struct  KeepMin
struct  KeepMax
struct  Histogram8
struct  osl::TopProb
 ƥǥȥåפμ꤬ؤ줿Ψ [詳細]
struct  osl::RatingDiffRange
 rating Ȥζ̤ratingκͤȤκ˴Ť 2μ¸Ψ [詳細]
struct  osl::RatingDiff

列挙型

enum  osl::Property {
  osl::All, osl::TakeBack, osl::TakeBack2, osl::NoTakeBack,
  osl::SeePlus, osl::SeePlus2, osl::SeePlusX, osl::NoSeePlus
}

関数

void usage (const char *prog)
void osl::showLogProb (const stat::Histogram &numerator, const stat::Histogram &denominator)
void osl::showLogProb (const stat::Histogram &numerator, const stat::Histogram &denom1, const stat::Histogram &denom2)
void osl::showLogProb (const Histogram8 &numerator, const Histogram8 &denom1, const Histogram8 &denom2)
size_t osl::find (Property property, const NumEffectState &state, const RatingEnv &e, const RatedMoveVector &moves, Move selected)
TopProb takeback_topprob (TakeBack)
TopProb takeback2_topprob (TakeBack2)
void test_file (const FeatureSet &, const char *filename)
void test_record (const FeatureSet &f, const SimpleState &initial, const osl::stl::vector< osl::Move > &moves)
int main (int argc, char **argv)
void test_position (const FeatureSet &f, Move next_move, Move last_move, const RatingEnv &env, const NumEffectState &state, const eval::ProgressEval &eval)

変数

size_t first_skip = 3
int verbose = 0
const char * kisen_filename = 0
size_t num_kisen = 4000
size_t kisen_start = 200000
size_t min_rating = 1500
stat::Average moves
stat::Average probs
stat::Average order
stat::Average top_score
stat::Average selected_score
const int width = 4
const int length = 20
Histogram8 moves_histogram (width, length)
Histogram8 selected_histogram (width, length)
Histogram8 all_moves_histogram (width, length)
const int sc_width = 100
const int sc_length = 16
const int sc_start = -400
stat::Histogram takeback_histogram (sc_width, sc_length, sc_start)
stat::Histogram selected_takeback (sc_width, sc_length, sc_start)
stat::Histogram takeback_order (1, 10)
stat::Histogram takeback_order_all (1, 10)
stat::Histogram takeback_order_selected (1, 10)
stat::Histogram seeplus_histogram (sc_width, sc_length, sc_start)
stat::Histogram selected_seeplus (sc_width, sc_length, sc_start)
stat::Histogram seeplus_order (1, 10)
stat::Histogram seeplus_order_all (1, 10)
stat::Histogram seeplus_order_selected (1, 10)
stat::Histogram king_escape_histogram (sc_width, sc_length, sc_start)
stat::Histogram selected_king_escape (sc_width, sc_length, sc_start)
stat::Histogram kingescape_order (1, 10)
stat::Histogram kingescape_order_all (1, 10)
stat::Histogram kingescape_order_selected (1, 10)
Histogram8 score_histogram (sc_width, sc_length+4, sc_start)
Histogram8 selected_score_histogram (sc_width, sc_length+4, sc_start)
Histogram8 all_score_histogram (sc_width, sc_length+4, sc_start)
Histogram8 rscore_histogram (sc_width, sc_length)
Histogram8 rselected_score_histogram (sc_width, sc_length)
Histogram8 rall_score_histogram (sc_width, sc_length)
KeepMin min_selected
KeepMin min_top
KeepMax max_notakeback
KeepMax max_nocapture
const int sc_length_2d = sc_length+2
const int sc_start_2d = -100
RatingDiff rating_diff
TopProb top_prob (All)
TopProb no_takeback_topprob (NoTakeBack)
TopProb seeplus_topprob (SeePlus)
TopProb seeplus2_topprob (SeePlus2)
TopProb seeplusx_topprob (SeePlusX)
CArray< stat::Variance, 8 > top_rating_progress
size_t num_positions = 0


関数

int main ( int  argc,
char **  argv 
)

TopProb takeback2_topprob ( TakeBack2   ) 

参照元 main(), と test_position().

TopProb takeback_topprob ( TakeBack   ) 

参照元 main(), と test_position().

void test_file ( const FeatureSet f,
const char *  filename 
)

void test_position ( const FeatureSet f,
Move  next_move,
Move  last_move,
const RatingEnv env,
const NumEffectState &  state,
const eval::ProgressEval eval 
)

void test_record ( const FeatureSet f,
const SimpleState &  initial,
const osl::stl::vector< osl::Move > &  moves 
)

void usage ( const char *  prog  ) 

ratingstat.cc23 行で定義されています。


変数

参照元 main(), と test_position().

参照元 main(), と test_position().

size_t first_skip = 3

ratingstat.cc31 行で定義されています。

参照元 main(), と test_position().

参照元 main(), と test_position().

参照元 main(), と test_position().

参照元 main(), と test_position().

const char* kisen_filename = 0

ratingstat.cc33 行で定義されています。

参照元 main().

size_t kisen_start = 200000

ratingstat.cc35 行で定義されています。

参照元 main().

const int length = 20

ratingstat.cc97 行で定義されています。

ratingstat.cc97 行で定義されています。

size_t min_rating = 1500

ratingstat.cc36 行で定義されています。

参照元 main().

ratingstat.cc96 行で定義されています。

ratingstat.cc96 行で定義されています。

ratingstat.cc81 行で定義されています。

参照元 main(), と test_position().

size_t num_kisen = 4000

ratingstat.cc34 行で定義されています。

参照元 main().

size_t num_positions = 0

ratingstat.cc535 行で定義されています。

ratingstat.cc81 行で定義されています。

ratingstat.cc81 行で定義されています。

参照元 main(), と test_position().

ratingstat.cc416 行で定義されています。

参照元 main(), と test_position().

参照元 main(), と test_position().

const int sc_length = 16

ratingstat.cc85 行で定義されています。

const int sc_length_2d = sc_length+2

ratingstat.cc98 行で定義されています。

参照元 osl::RatingDiffRange::index(), と osl::RatingDiffRange::show().

const int sc_start = -400

ratingstat.cc85 行で定義されています。

const int sc_start_2d = -100

ratingstat.cc99 行で定義されています。

参照元 osl::RatingDiffRange::index().

const int sc_width = 100

ratingstat.cc85 行で定義されています。

参照元 main(), と test_position().

参照元 main(), と test_position().

参照元 main(), と test_position().

参照元 main(), と test_position().

参照元 main(), と test_position().

参照元 main(), と test_position().

参照元 main(), と test_position().

参照元 main(), と test_position().

参照元 main(), と test_position().

参照元 main(), と test_position().

ratingstat.cc81 行で定義されています。

参照元 main(), と test_position().

参照元 main(), と test_position().

参照元 main(), と test_position().

参照元 main(), と test_position().

参照元 main(), と test_position().

参照元 main(), と test_position().

参照元 main(), と test_position().

参照元 main(), と test_position().

ratingstat.cc419 行で定義されています。

参照元 main(), と test_position().

ratingstat.cc81 行で定義されています。

int verbose = 0

ratingstat.cc32 行で定義されています。

const int width = 4

ratingstat.cc82 行で定義されています。

参照元 osl::showLogProb().


Thu Oct 8 05:01:13 2009に生成されました。  doxygen 1.5.6