-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathevaluation.h
37 lines (29 loc) · 986 Bytes
/
evaluation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
////////////////////////////////////////////////////////////////////
/// File "es.h"
/// Project GRGA: Generalized Regression based on Genetic Algorithms
/// Author: Daniel Dominguez Catena
////////////////////////////////////////////////////////////////////
#ifndef GRGA_EVALUATION_H
#define GRGA_EVALUATION_H
#include "gnuplot_c.h"
#include "types.h"
namespace GRGA
{
namespace Evaluation
{
extern h_GPC_Plot *h2DPlot;
scorereal score(fType * formula, bool print = false);
inline scorereal score(iESType * i)
{
xreal * tmp = i->formula->parameters;
i->formula->parameters = i->parameters;
scorereal res = score(i->formula);
i->formula->parameters = tmp;
return res;
}
xreal evaluate(fType * formula, unsigned int index);
xreal evaluateFullSeries(fType * formula, unsigned int index,
xreal * prevs, int prevIndex);
}
}
#endif // GRGA_EVALUATION_H