構成 | 関数 | 変数

featureSet.cc

#include "osl/rating/featureSet.h"
#include "osl/config.h"
#include "osl/rating/group.h"
#include "osl/rating/group/captureGroup.h"
#include "osl/rating/group/escape.h"
#include "osl/rating/group/squareGroup.h"
#include "osl/rating/group/patternGroup.h"
#include "osl/rating/group/bigramGroup.h"
#include "osl/rating/group/king8Group.h"
#include "osl/rating/group/checkmateGroup.h"
#include "osl/rating/group/pinGroup.h"
#include "osl/move_generator/allMoves.h"
#include "osl/move_generator/escape_.h"
#include "osl/move_classifier/moveAdaptor.h"
#include "osl/move_classifier/safeMove.h"
#include "osl/stat/variance.h"
#include "osl/oslConfig.h"
#include <boost/format.hpp>
#include <map>
#include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip>
#include <stdexcept>
#include <cmath>
featureSet.ccのインクルード依存関係図

ソースコードを見る。

構成

struct  osl::rating::FeatureSet::Statistics

関数

int make_prob (int score, int order, int limit, int highest, int progress8, bool in_pv_or_all)

変数

const int MinRating = -4000
static const osl::CArray2d
< int, 8, 20 > 
order_to_depth
static const osl::CArray2d
< int, 8, 20 > 
order_to_width
const int sc_width = 100
const int sc_length = 18
const int sc_start = -400
static const osl::CArray2d
< int, 8, sc_length
score_to_depth
static const osl::CArray2d
< int, 8, sc_length
score_to_width
const int rsc_length = 15
static const osl::CArray2d
< int, 8, rsc_length
relative_score_to_depth
static const osl::CArray2d
< int, 8, rsc_length
relative_score_to_width
const int max_score = 999
const int min_score = 0
static const osl::CArray< int, 10 > score_to_depth_takeback
static const osl::CArray< int, 10 > score_to_depth_seeplus
static const osl::CArray< int, 10 > score_to_depth_kingescape
static const osl::CArray2d
< int, 8, 16 > 
threshold

関数

int make_prob ( int  score,
int  order,
int  limit,
int  highest,
int  progress8,
bool  in_pv_or_all 
) [inline]

変数

const int max_score = 999

featureSet.cc408 行で定義されています。

const int min_score = 0
const int MinRating = -4000
const osl::CArray2d<int, 8, 20> order_to_depth [static]
初期値:
 {{
   186, 213, 243, 247, 249,  255, 252, 258, 263, 269,  267, 279, 295, 295, 295,  295, 295, 295, 295, 295, 
   191, 245, 283, 300, 313,  315, 319, 323, 326, 339,  321, 347, 334, 346, 328,  368, 328, 328, 328, 328, 
   183, 250, 304, 328, 346,  352, 373, 366, 365, 379,  396, 379, 392, 416, 420,  374, 423, 378, 395, 399, 
   184, 253, 312, 346, 358,  378, 389, 407, 409, 403,  404, 421, 432, 395, 421,  444, 444, 461, 411, 408, 
   190, 256, 319, 350, 373,  397, 397, 403, 420, 431,  415, 450, 424, 416, 436,  447, 456, 439, 429, 428, 
   197, 262, 324, 357, 374,  390, 407, 423, 415, 425,  436, 444, 458, 455, 439,  474, 451, 466, 464, 457, 
   202, 268, 332, 360, 381,  386, 416, 416, 418, 433,  447, 446, 452, 462, 479,  468, 467, 486, 483, 459, 
   205, 270, 330, 361, 383,  394, 410, 418, 427, 438,  438, 452, 446, 445, 447,  463, 475, 472, 483, 485, 
}}

featureSet.cc236 行で定義されています。

参照元 make_prob().

const osl::CArray2d<int, 8, 20> order_to_width [static]
初期値:
 {{
   262, 445, 584, 685, 788,  890, 982,1067,1120,1148, 1137,1156,1182,1231,1259, 1343,1352,1359,1359,1359, 
   265, 456, 577, 665, 745,  809, 874, 938, 997,1061, 1088,1154,1179,1231,1259, 1343,1352,1359,1359,1359, 
   260, 467, 596, 680, 751,  807, 872, 908, 951,1003, 1054,1072,1117,1168,1198, 1188,1267,1259,1311,1344, 
   261, 467, 599, 688, 747,  810, 861, 914, 948, 975, 1008,1055,1092,1084,1142, 1189,1214,1254,1231,1258, 
   264, 463, 595, 679, 746,  808, 844, 885, 933, 973,  987,1049,1048,1068,1115, 1151,1184,1191,1209,1233, 
   268, 459, 588, 673, 732,  788, 840, 887, 910, 950,  989,1022,1059,1078,1088, 1144,1144,1180,1201,1216, 
   271, 459, 587, 664, 727,  771, 835, 866, 899, 942,  984,1006,1037,1069,1105, 1114,1134,1173,1188,1186, 
   272, 458, 581, 661, 725,  773, 824, 863, 902, 940,  966,1005,1023,1047,1074, 1113,1145,1163,1193,1214, 
}}

featureSet.cc246 行で定義されています。

参照元 make_prob().

const osl::CArray2d<int, 8, rsc_length> relative_score_to_depth [static]
初期値:
 {{
   193, 220, 235, 249, 256,  263, 268, 274, 279, 284,  283, 279, 292, 267, 272, 
   220, 243, 263, 273, 287,  300, 306, 308, 317, 325,  328, 339, 319, 336, 323, 
   215, 242, 267, 287, 302,  314, 329, 340, 347, 360,  367, 364, 349, 387, 374, 
   209, 243, 267, 293, 317,  332, 347, 360, 372, 383,  387, 387, 395, 398, 405, 
   216, 244, 276, 303, 322,  344, 360, 374, 378, 397,  405, 414, 408, 400, 424, 
   220, 251, 278, 307, 331,  355, 365, 381, 398, 406,  418, 423, 414, 433, 403, 
   226, 254, 284, 311, 336,  354, 378, 390, 408, 418,  420, 448, 414, 446, 408, 
   219, 250, 283, 310, 333,  356, 377, 391, 403, 417,  426, 426, 440, 445, 452, 
}}

featureSet.cc280 行で定義されています。

参照元 make_prob().

const osl::CArray2d<int, 8, rsc_length> relative_score_to_width [static]
初期値:
 {{
   214, 285, 357, 442, 520,  596, 669, 742, 816, 881,  928, 972,1045,1079,1143, 
   237, 302, 374, 442, 519,  595, 662, 731, 799, 870,  925, 994,1031,1112,1159, 
   230, 294, 367, 442, 517,  595, 675, 746, 815, 884,  951,1012,1060,1149,1185, 
   224, 292, 361, 441, 524,  602, 682, 758, 833, 904,  964,1028,1105,1164,1223, 
   231, 295, 369, 449, 525,  611, 692, 771, 839, 922,  985,1041,1094,1150,1239, 
   235, 301, 370, 450, 532,  616, 690, 769, 851, 920,  991,1054,1100,1194,1217, 
   240, 300, 373, 448, 527,  607, 693, 768, 845, 919,  981,1066,1094,1191,1218, 
   233, 294, 364, 435, 511,  591, 674, 753, 832, 917,  993,1065,1157,1224,1300, 
}}

featureSet.cc290 行で定義されています。

参照元 make_prob().

const int rsc_length = 15

featureSet.cc279 行で定義されています。

参照元 make_prob().

const int sc_length = 18
const int sc_start = -400
const int sc_width = 100
const osl::CArray2d<int, 8, sc_length> score_to_depth [static]
初期値:
 {{
   263, 271,  274, 270, 278, 253, 235,  201, 171, 151, 111,  95,   83,  76,  78,  65,  71,   61,
   330, 334,  328, 316, 312, 304, 284,  256, 218, 188, 159, 136,  113, 103,  92,  87,  82,   71,
   377, 374,  376, 368, 356, 337, 311,  278, 246, 203, 175, 146,  131, 118, 107,  96,  81,   65,
   415, 424,  406, 396, 376, 345, 315,  276, 243, 211, 179, 155,  138, 121, 110,  91,  80,   62,
   423, 422,  433, 423, 405, 381, 341,  313, 276, 243, 210, 182,  158, 142, 123, 104,  85,   73,
   442, 451,  448, 437, 417, 395, 364,  333, 297, 267, 234, 202,  178, 158, 133, 107,  91,   76,
   446, 447,  455, 439, 427, 402, 373,  339, 307, 274, 242, 212,  188, 162, 133, 111,  92,   75,
   467, 468,  469, 453, 433, 412, 389,  365, 334, 301, 268, 236,  205, 177, 153, 131, 116,  101,
}}

featureSet.cc258 行で定義されています。

参照元 osl::rating::FeatureSet::logProbKingEscape(), osl::rating::FeatureSet::logProbSeePlus(), osl::rating::FeatureSet::logProbTakeBack(), と make_prob().

const osl::CArray<int, 10> score_to_depth_kingescape [static]
初期値:
 {{
  203, 201, 199, 188, 181, 169, 159, 147, 136, 122,
}}

featureSet.cc415 行で定義されています。

const osl::CArray<int, 10> score_to_depth_seeplus [static]
初期値:
 {{
  356, 337, 296, 262, 230, 200, 171, 148, 132, 120,
}}

featureSet.cc412 行で定義されています。

const osl::CArray<int, 10> score_to_depth_takeback [static]
初期値:
 {{
  223, 204, 208, 190, 159, 137, 124, 110, 100, 89
}}

featureSet.cc409 行で定義されています。

const osl::CArray2d<int, 8, sc_length> score_to_width [static]
初期値:
 {{
   978, 880,  786, 676, 586, 475, 383,  302, 239, 208, 167, 153,  134, 127, 126, 100, 100,   82,
  1020, 935,  836, 730, 634, 549, 472,  412, 351, 312, 269, 232,  190, 167, 143, 127, 112,   95,
  1095, 998,  910, 810, 715, 623, 543,  471, 407, 338, 291, 246,  216, 189, 160, 140, 115,   90,
  1106,1031,  929, 829, 730, 635, 551,  469, 402, 341, 290, 249,  217, 186, 159, 127, 108,   85,
  1185,1092, 1011, 913, 811, 717, 617,  538, 459, 391, 331, 285,  242, 210, 176, 143, 114,   96,
  1224,1150, 1058, 957, 853, 755, 658,  573, 493, 424, 363, 308,  262, 223, 181, 142, 116,   96,
  1224,1134, 1057, 953, 857, 759, 666,  579, 501, 432, 373, 315,  267, 220, 178, 141, 115,   93,
  1296,1201, 1115,1009, 904, 807, 717,  638, 563, 492, 425, 363,  305, 254, 210, 172, 145,  123,
}}

featureSet.cc268 行で定義されています。

参照元 make_prob().

const osl::CArray2d<int,8,16> threshold [static]
初期値:
 {{
    0, 0, 0, 0, 0, 0,
    100, 100,  50,   0,   0, -75,-100,-150,-200,-200,

    0, 0, 0, 0, 0, 0,
    125, 125, 125,  25,  25, -50, -50,-100,-125,-225,

    0, 0, 0, 0, 0, 0,
    100,  75, 100,  25,   0, -25, -50,-100,-125,-175,

    0, 0, 0, 0, 0, 0,
     75,  50,  75,   0, -25, -25, -75,-100,-125,-200,

    0, 0, 0, 0, 0, 0,
    125, 125, 150,  50,  50,  50, -25,   0, -50,-200,

    0, 0, 0, 0, 0, 0,
    175, 200, 200,  75,  75,  75,   0,   0,-175,-300,

    0, 0, 0, 0, 0, 0,
    175, 175, 200,  50,  75,  75,  25,   0,-100,-250,

    0, 0, 0, 0, 0, 0,
    225, 200, 225,  75, 100,  75,  50,   0,   0,-250,
}}

featureSet.cc518 行で定義されています。

 全て クラス ネームスペース ファイル 関数 変数 型定義 列挙型 列挙型の値 フレンド マクロ定義