-
Notifications
You must be signed in to change notification settings - Fork 13
/
report.h
143 lines (119 loc) · 3.56 KB
/
report.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
/*
Ordo is program for calculating ratings of engine or chess players
Copyright 2013 Miguel A. Ballicora
This file is part of Ordo.
Ordo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Ordo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Ordo. If not, see <http://www.gnu.org/licenses/>.
*/
#if !defined(H_REPORT)
#define H_REPORT
/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/
#include <stdio.h>
#include <stdlib.h>
#include "mytypes.h"
#define MAX_prnt 15
void
cegt_output ( bool_t quiet
, const struct GAMES *g
, const struct PLAYERS *p
, const struct RATINGS *r
, struct ENCOUNTERS *e // memory just provided for local calculations
, double *sdev
, long simulate
, double confidence_factor
, const struct GAMESTATS *pgame_stats
, const struct DEVIATION_ACC *s
, struct output_qualifiers outqual
, int decimals);
// Function provided to have all head to head information
void
head2head_output( const struct GAMES * g
, const struct PLAYERS * p
, const struct RATINGS * r
, struct ENCOUNTERS * e // memory just provided for local calculations
, double * sdev
, long simulate
, double confidence_factor
, const struct GAMESTATS * pgame_stats
, const struct DEVIATION_ACC * s
, const char * head2head_str
, int decimals);
void
all_report ( const struct GAMES *g
, const struct PLAYERS *p
, const struct RATINGS *r
, const struct rel_prior_set *rps
, struct ENCOUNTERS *e // memory just provided for local calculations
, double *sdev
, long simulate
, bool_t hide_old_ver
, double confidence_factor
, FILE *csvf
, FILE *textf
, double white_advantage
, double drawrate_evenmatch
, int decimals
, int decimals_score
, struct output_qualifiers outqual
, double wa_sdev
, double dr_sdev
, const struct DEVIATION_ACC * s
, bool_t csf_column
, int *inp_list
);
void
errorsout ( const struct PLAYERS *p
, const struct RATINGS *r
, const struct DEVIATION_ACC *s
, const char *out
, double confidence_factor);
void
ctsout ( const struct PLAYERS *p
, const struct RATINGS *r
, const struct DEVIATION_ACC *s
, const char *out);
void
look_at_predictions
( gamesnum_t n_enc
, const struct ENC *enc
, const double *ratingof
, double beta
, double wadv
, double dr0);
void
look_at_individual_deviation
( player_t n_players
, const bool_t * flagged
, struct RATINGS * rat
, struct ENC * enc
, gamesnum_t n_enc
, double white_adv
, double beta);
bool_t
str2list
( const char *inp_str
, int max
, int *n
, int *t);
bool_t
report_columns_set (int i, int shft, const char *hdr);
bool_t
report_columns_set_str (const char *i_str, const char *s_str, const char *hdr);
void
report_columns_unset (int i);
bool_t
report_columns_init (void);
void
report_columns_done (void);
void
report_columns_load_settings (bool_t quietmode, const char *finp_name);
/*<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
#endif