XCSF 1.4.8
XCSF learning classifier system
Loading...
Searching...
No Matches
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
28void
29pa_build(const struct XCSF *xcsf, const double *x);
30
31double
32pa_best_val(const struct XCSF *xcsf);
33
34double
35pa_val(const struct XCSF *xcsf, const int action);
36
37int
38pa_best_action(const struct XCSF *xcsf);
39
40int
41pa_rand_action(const struct XCSF *xcsf);
42
43void
44pa_init(struct XCSF *xcsf);
45
46void
47pa_free(const struct XCSF *xcsf);
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.