XCSF
1.4.7
XCSF learning classifier system
|
Always-matching dummy condition functions. More...
Go to the source code of this file.
Functions | |
bool | cond_dummy_crossover (const struct XCSF *xcsf, const struct Cl *c1, const struct Cl *c2) |
Dummy crossover function. More... | |
bool | cond_dummy_general (const struct XCSF *xcsf, const struct Cl *c1, const struct Cl *c2) |
Dummy general function. More... | |
bool | cond_dummy_match (const struct XCSF *xcsf, const struct Cl *c, const double *x) |
Dummy match function. More... | |
bool | cond_dummy_mutate (const struct XCSF *xcsf, const struct Cl *c) |
Dummy mutate function. More... | |
void | cond_dummy_copy (const struct XCSF *xcsf, struct Cl *dest, const struct Cl *src) |
Dummy copy function. More... | |
void | cond_dummy_cover (const struct XCSF *xcsf, const struct Cl *c, const double *x) |
Dummy cover function. More... | |
void | cond_dummy_free (const struct XCSF *xcsf, const struct Cl *c) |
Dummy free function. More... | |
void | cond_dummy_init (const struct XCSF *xcsf, struct Cl *c) |
Dummy initialisation function. More... | |
void | cond_dummy_print (const struct XCSF *xcsf, const struct Cl *c) |
Dummy print function. More... | |
void | cond_dummy_update (const struct XCSF *xcsf, const struct Cl *c, const double *x, const double *y) |
Dummy update function. More... | |
double | cond_dummy_size (const struct XCSF *xcsf, const struct Cl *c) |
Dummy size function. More... | |
size_t | cond_dummy_save (const struct XCSF *xcsf, const struct Cl *c, FILE *fp) |
Dummy save function. More... | |
size_t | cond_dummy_load (const struct XCSF *xcsf, struct Cl *c, FILE *fp) |
Dummy load function. More... | |
char * | cond_dummy_json_export (const struct XCSF *xcsf, const struct Cl *c) |
Returns a json formatted string representation of a dummy condition. More... | |
void | cond_dummy_json_import (const struct XCSF *xcsf, struct Cl *c, const cJSON *json) |
Dummy import function. More... | |
Variables | |
static struct CondVtbl const | cond_dummy_vtbl |
Dummy condition implemented functions. More... | |
Always-matching dummy condition functions.
Definition in file cond_dummy.h.
Dummy copy function.
[in] | xcsf | XCSF data structure. |
[in] | dest | Destination classifier. |
[in] | src | Source classifier. |
Definition at line 58 of file cond_dummy.c.
Dummy cover function.
[in] | xcsf | XCSF data structure. |
[in] | c | Classifier whose condition is being covered. |
[in] | x | Input state to cover. |
Definition at line 72 of file cond_dummy.c.
Dummy crossover function.
[in] | xcsf | XCSF data structure. |
[in] | c1 | First classifier whose condition is being crossed. |
[in] | c2 | Second classifier whose condition is being crossed. |
Definition at line 120 of file cond_dummy.c.
Dummy free function.
[in] | xcsf | XCSF data structure. |
[in] | c | Classifier whose condition is to be initialised. |
Definition at line 45 of file cond_dummy.c.
Dummy general function.
[in] | xcsf | XCSF data structure. |
[in] | c1 | Classifier whose condition is tested to be more general. |
[in] | c2 | Classifier whose condition is tested to be more specific. |
Definition at line 151 of file cond_dummy.c.
Dummy initialisation function.
[in] | xcsf | XCSF data structure. |
[in] | c | Classifier whose condition is to be initialised. |
Definition at line 33 of file cond_dummy.c.
Returns a json formatted string representation of a dummy condition.
[in] | xcsf | XCSF data structure. |
[in] | c | Classifier whose condition is to be returned. |
Definition at line 226 of file cond_dummy.c.
Referenced by cond_dummy_print().
Dummy import function.
[in] | xcsf | The XCSF data structure. |
[in,out] | c | The classifier to initialise. |
[in] | json | cJSON object. |
Definition at line 244 of file cond_dummy.c.
Dummy load function.
[in] | xcsf | XCSF data structure. |
[in] | c | Classifier whose condition is to be written. |
[in] | fp | Pointer to the file to be written. |
Definition at line 211 of file cond_dummy.c.
Dummy mutate function.
[in] | xcsf | XCSF data structure. |
[in] | c | Classifier whose condition is being mutated. |
Definition at line 136 of file cond_dummy.c.
Dummy print function.
[in] | xcsf | XCSF data structure. |
[in] | c | Classifier whose condition is to be printed. |
Definition at line 166 of file cond_dummy.c.
References cond_dummy_json_export().
Dummy save function.
[in] | xcsf | XCSF data structure. |
[in] | c | Classifier whose condition is to be written. |
[in] | fp | Pointer to the file to be written. |
Definition at line 195 of file cond_dummy.c.
Dummy size function.
[in] | xcsf | XCSF data structure. |
[in] | c | Classifier whose condition size to return. |
Definition at line 180 of file cond_dummy.c.
void cond_dummy_update | ( | const struct XCSF * | xcsf, |
const struct Cl * | c, | ||
const double * | x, | ||
const double * | y | ||
) |
Dummy update function.
[in] | xcsf | XCSF data structure. |
[in] | c | Classifier whose condition is to be updated. |
[in] | x | Input state. |
[in] | y | Truth/payoff value. |
Definition at line 87 of file cond_dummy.c.
|
static |
Dummy condition implemented functions.
Definition at line 75 of file cond_dummy.h.
Referenced by condition_set().