XCSF
1.4.7
XCSF learning classifier system
|
Built-in problem environment interface. More...
#include "xcsf.h"
Go to the source code of this file.
Data Structures | |
struct | EnvVtbl |
Built-in problem environment interface data structure. More... | |
Functions | |
void | env_init (struct XCSF *xcsf, char **argv) |
Initialises a built-in problem environment. More... | |
static bool | env_is_done (const struct XCSF *xcsf) |
Returns whether the environment is in a terminal state. More... | |
static bool | env_multistep (const struct XCSF *xcsf) |
Returns whether the environment is a multistep problem. More... | |
static double | env_execute (const struct XCSF *xcsf, const int action) |
Executes the specified action and returns the payoff. More... | |
static double | env_max_payoff (const struct XCSF *xcsf) |
Returns the maximum payoff value possible in the environment. More... | |
static const double * | env_get_state (const struct XCSF *xcsf) |
Returns the current environment perceptions. More... | |
static void | env_free (const struct XCSF *xcsf) |
Frees the environment. More... | |
static void | env_reset (const struct XCSF *xcsf) |
Resets the environment. More... | |
Built-in problem environment interface.
Definition in file env.h.
|
static |
Executes the specified action and returns the payoff.
[in] | xcsf | The XCSF data structure. |
[in] | action | The action to perform. |
Definition at line 74 of file env.h.
Referenced by xcs_rl_trial().
|
static |
|
static |
Returns the current environment perceptions.
[in] | xcsf | The XCSF data structure. |
Definition at line 96 of file env.h.
Referenced by xcs_rl_trial().
void env_init | ( | struct XCSF * | xcsf, |
char ** | argv | ||
) |
Initialises a built-in problem environment.
[in] | xcsf | The XCSF data structure. |
[in] | argv | The command line arguments. |
Definition at line 34 of file env.c.
References env_csv_init(), env_csv_vtbl, env_maze_init(), env_maze_vtbl, env_mux_init(), and env_mux_vtbl.
Referenced by main().
|
static |
Returns whether the environment is in a terminal state.
[in] | xcsf | The XCSF data structure. |
Definition at line 51 of file env.h.
Referenced by xcs_rl_trial().
|
static |
Returns the maximum payoff value possible in the environment.
[in] | xcsf | The XCSF data structure. |
Definition at line 85 of file env.h.
Referenced by xcs_rl_trial().
|
static |
Returns whether the environment is a multistep problem.
[in] | xcsf | The XCSF data structure. |
Definition at line 62 of file env.h.
Referenced by xcs_rl_trial().
|
static |
Resets the environment.
[in] | xcsf | The XCSF data structure. |
Definition at line 116 of file env.h.
Referenced by xcs_rl_trial().