ECF 1.5
Public Member Functions | Public Attributes | List of all members
GEPSymbRegEvalOp Class Reference

Symbolic regression evaluation operator. More...

#include <GEPSymbRegEvalOp.h>

Inheritance diagram for GEPSymbRegEvalOp:
EvaluateOp

Public Member Functions

FitnessP evaluate (IndividualP individual)
 Evaluate a single individual. Method must create and return a Fitness object. More...
 
bool initialize (StateP)
 Initialize the evaluator. Called before first evaluation occurs. More...
 
void registerParameters (StateP)
 Register evaluator parameters. Called before EvaluateOp::initialize method. More...
 
bool csvRead (StateP state, std::string entry, std::vector< double > *vec)
 
void readIndividual (IndividualP individual)
 
virtual FitnessP evaluate (IndividualP)=0
 Evaluate a single individual. Method must create and return a Fitness object. More...
 
virtual void registerParameters (StateP)
 Register evaluator parameters. Called before EvaluateOp::initialize method. More...
 
virtual bool initialize (StateP)
 Initialize the evaluator. Called before first evaluation occurs. More...
 

Public Attributes

std::vector< double > x
 
std::vector< double > y
 
std::vector< double > f
 
uint nSamples
 
uint nVariables
 
Evaluator eval
 

Detailed Description

Symbolic regression evaluation operator.

Definition at line 32 of file GEPSymbRegEvalOp.h.

Member Function Documentation

◆ csvRead()

bool GEPSymbRegEvalOp::csvRead ( StateP  state,
std::string  entry,
std::vector< double > *  vec 
)

Definition at line 66 of file GEPSymbRegEvalOp.cpp.

◆ evaluate()

FitnessP GEPSymbRegEvalOp::evaluate ( IndividualP  )
virtual

Evaluate a single individual. Method must create and return a Fitness object.

Implements EvaluateOp.

Definition at line 80 of file GEPSymbRegEvalOp.cpp.

◆ initialize()

bool GEPSymbRegEvalOp::initialize ( StateP  )
virtual

Initialize the evaluator. Called before first evaluation occurs.

Reimplemented from EvaluateOp.

Definition at line 13 of file GEPSymbRegEvalOp.cpp.

◆ readIndividual()

void GEPSymbRegEvalOp::readIndividual ( IndividualP  individual)

Definition at line 104 of file GEPSymbRegEvalOp.cpp.

◆ registerParameters()

void GEPSymbRegEvalOp::registerParameters ( StateP  )
virtual

Register evaluator parameters. Called before EvaluateOp::initialize method.

Reimplemented from EvaluateOp.

Definition at line 6 of file GEPSymbRegEvalOp.cpp.

Member Data Documentation

◆ eval

Evaluator GEPSymbRegEvalOp::eval

Definition at line 47 of file GEPSymbRegEvalOp.h.

◆ f

std::vector<double> GEPSymbRegEvalOp::f

Definition at line 43 of file GEPSymbRegEvalOp.h.

◆ nSamples

uint GEPSymbRegEvalOp::nSamples

Definition at line 44 of file GEPSymbRegEvalOp.h.

◆ nVariables

uint GEPSymbRegEvalOp::nVariables

Definition at line 45 of file GEPSymbRegEvalOp.h.

◆ x

std::vector<double> GEPSymbRegEvalOp::x

Definition at line 41 of file GEPSymbRegEvalOp.h.

◆ y

std::vector<double> GEPSymbRegEvalOp::y

Definition at line 42 of file GEPSymbRegEvalOp.h.


The documentation for this class was generated from the following files: