ECF 1.7
SymbRegEvalOp.h
1#ifndef SymbRegEvalOp_h
2#define SymbRegEvalOp_h
3
4
21
22
28{
29public:
30 FitnessP evaluate(IndividualP individual);
31 bool initialize(StateP);
32
33 //domain
34 std::vector<double> x1;
35 std::vector<double> x2;
36 std::vector<double> x3;
37
38 //codomain
39 std::vector<double> y1;
40 std::vector<double> y2;
41 std::vector<double> y3;
42
43 std::vector< std::vector<double> > inputs_;
44 uint nSamples_;
45};
46typedef std::shared_ptr<CGPSymbRegEvalOp> CGPSymbRegEvalOpP;
47
48#endif // SymbRegEvalOp_h
CGP symbolic regression evaluation operator.
bool initialize(StateP)
Initialize the evaluator. Called before first evaluation occurs.
FitnessP evaluate(IndividualP individual)
Evaluate a single individual. Method must create and return a Fitness object.
Evaluation base class.
Definition EvaluateOp.h:17