XCSF  1.4.7
XCSF learning classifier system
pa.h
Go to the documentation of this file.
1 /*
2  * This program is free software: you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation, either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program. If not, see <http://www.gnu.org/licenses/>.
14  */
15 
24 #pragma once
25 
26 #include "xcsf.h"
27 
28 void
29 pa_build(const struct XCSF *xcsf, const double *x);
30 
31 double
32 pa_best_val(const struct XCSF *xcsf);
33 
34 double
35 pa_val(const struct XCSF *xcsf, const int action);
36 
37 int
38 pa_best_action(const struct XCSF *xcsf);
39 
40 int
41 pa_rand_action(const struct XCSF *xcsf);
42 
43 void
44 pa_init(struct XCSF *xcsf);
45 
46 void
47 pa_free(const struct XCSF *xcsf);
Definition: __init__.py:1
double pa_best_val(const struct XCSF *xcsf)
Returns the highest value in the prediction array.
Definition: pa.c:165
int pa_rand_action(const struct XCSF *xcsf)
Returns a random action from the prediction array.
Definition: pa.c:150
double pa_val(const struct XCSF *xcsf, const int action)
Returns the value of a specified action in the prediction array.
Definition: pa.c:178
void pa_build(const struct XCSF *xcsf, const double *x)
Builds the prediction array for the specified input.
Definition: pa.c:62
void pa_free(const struct XCSF *xcsf)
Frees the prediction array.
Definition: pa.c:192
int pa_best_action(const struct XCSF *xcsf)
Returns the best action in the prediction array.
Definition: pa.c:123
void pa_init(struct XCSF *xcsf)
Initialises the prediction array.
Definition: pa.c:46
XCSF data structure.
Definition: xcsf.h:85
XCSF data structures.