40 const double *(*env_impl_get_state)(
const struct XCSF *
xcsf);
53 return (*
xcsf->env_vptr->env_impl_is_done)(
xcsf);
64 return (*
xcsf->env_vptr->env_impl_multistep)(
xcsf);
76 return (*
xcsf->env_vptr->env_impl_execute)(
xcsf, action);
87 return (*
xcsf->env_vptr->env_impl_max_payoff)(
xcsf);
95 static inline const double *
98 return (*
xcsf->env_vptr->env_impl_get_state)(
xcsf);
108 (*
xcsf->env_vptr->env_impl_free)(
xcsf);
118 (*
xcsf->env_vptr->env_impl_reset)(
xcsf);
static void env_reset(const struct XCSF *xcsf)
Resets the environment.
void env_init(struct XCSF *xcsf, char **argv)
Initialises a built-in problem environment.
static bool env_multistep(const struct XCSF *xcsf)
Returns whether the environment is a multistep problem.
static const double * env_get_state(const struct XCSF *xcsf)
Returns the current environment perceptions.
static double env_max_payoff(const struct XCSF *xcsf)
Returns the maximum payoff value possible in the environment.
static bool env_is_done(const struct XCSF *xcsf)
Returns whether the environment is in a terminal state.
static double env_execute(const struct XCSF *xcsf, const int action)
Executes the specified action and returns the payoff.
static void env_free(const struct XCSF *xcsf)
Frees the environment.
Built-in problem environment interface data structure.
bool(* env_impl_multistep)(const struct XCSF *xcsf)
double(* env_impl_max_payoff)(const struct XCSF *xcsf)
bool(* env_impl_is_done)(const struct XCSF *xcsf)
void(* env_impl_free)(const struct XCSF *xcsf)
void(* env_impl_reset)(const struct XCSF *xcsf)
double(* env_impl_execute)(const struct XCSF *xcsf, const int action)