Name
GoHistory -- track the development of a player's strength in time
Description
Objects of this class are used by GoStrengths to track the
development of a player's strength in time.
Details
go_history_new ()
GtkObject* go_history_new (double *strength_ptr); |
Allocate a new GoHistory object to track the value at
strength_ptr. The history length is set to 0. You
must call set_length() to increase it.
go_history_set_length ()
void go_history_set_length (GoHistory *self,
int n); |
Set the number of games in the record.
go_history_increase_length ()
void go_history_increase_length (GoHistory *self); |
Increase the number of games in the record by one.
go_history_get_strength ()
double go_history_get_strength (GoHistory *self,
int i); |
Get the strength value recorded for game number i.
go_history_probability ()
double go_history_probability (GoHistory *self); |
Estimate the likelihood of the currently stored data.
go_history_compensator ()
double go_history_compensator (GoHistory *self); |
Return a typical mean value for the return value of probability().
The result does not depend on the current parameter settings,
but it may depend on the number of games stored.
go_history_write_back ()
void go_history_write_back (GoHistory *self); |
Write back the current player strength from the GoHistory object self
to the original location.
Signals
The "add-parameter" signal
void user_function (GoHistory *gohistory,
gpointer arg1,
gpointer user_data); |
The "remove-parameter" signal
void user_function (GoHistory *gohistory,
gpointer arg1,
gpointer user_data); |