ECF 1.7
Cartesian::Function Class Referenceabstract

#include <Function.h>

Inheritance diagram for Cartesian::Function:
Cartesian::AddT< double > Cartesian::AddT< double > Cartesian::CosT< double > Cartesian::CosT< double > Cartesian::DivT< double > Cartesian::DivT< double > Cartesian::ExpT< double > Cartesian::ExpT< double > Cartesian::MaxT< double > Cartesian::MaxT< double > Cartesian::MinT< double > Cartesian::MinT< double > Cartesian::MulT< double > Cartesian::MulT< double > Cartesian::NlogT< double > Cartesian::NlogT< double > Cartesian::PosT< double > Cartesian::PosT< double > Cartesian::SinT< double > Cartesian::SinT< double > Cartesian::SqrtT< double > Cartesian::SqrtT< double > Cartesian::StepT< double > Cartesian::StepT< double > Cartesian::SubT< double > Cartesian::SubT< double > Cartesian::AddT< T > Cartesian::AddT< T > Cartesian::CosT< T > Cartesian::CosT< T > Cartesian::DivT< T > Cartesian::DivT< T > Cartesian::ExpT< T > Cartesian::ExpT< T > Cartesian::MaxT< T > Cartesian::MaxT< T > Cartesian::MinT< T > Cartesian::MinT< T > Cartesian::MulT< T > Cartesian::MulT< T > Cartesian::NlogT< T > Cartesian::NlogT< T > Cartesian::PosT< T > Cartesian::PosT< T > Cartesian::SinT< T > Cartesian::SinT< T > Cartesian::SqrtT< T > Cartesian::SqrtT< T > Cartesian::StepT< T > Cartesian::StepT< T > Cartesian::SubT< T > Cartesian::SubT< T >

Public Member Functions

virtual void evaluate (std::vector< double > &inputs, double &result)=0
std::string getName ()
uint getNumberOfArguments ()
virtual void evaluate (std::vector< double > &inputs, double &result)=0
std::string getName ()
uint getNumberOfArguments ()

Protected Attributes

std::string name_
uint nArguments_

Detailed Description

Virtual class for function nodes in CGP.

Definition at line 11 of file Function.h.

Constructor & Destructor Documentation

◆ Function() [1/2]

Cartesian::Function::Function ( )
inline

Definition at line 14 of file Function.h.

◆ ~Function() [1/2]

virtual Cartesian::Function::~Function ( )
inlinevirtual

Definition at line 15 of file Function.h.

◆ Function() [2/2]

Cartesian::Function::Function ( )
inline

Definition at line 14 of file Function.h.

◆ ~Function() [2/2]

virtual Cartesian::Function::~Function ( )
inlinevirtual

Definition at line 15 of file Function.h.

Member Function Documentation

◆ evaluate() [1/2]

virtual void Cartesian::Function::evaluate ( std::vector< double > & inputs,
double & result )
pure virtual

Evaluate result with given inputs in one of implemented derived classes.

◆ evaluate() [2/2]

virtual void Cartesian::Function::evaluate ( std::vector< double > & inputs,
double & result )
pure virtual

Evaluate result with given inputs in one of implemented derived classes.

◆ getName() [1/2]

std::string Cartesian::Function::getName ( )
inline

Definition at line 22 of file Function.h.

◆ getName() [2/2]

std::string Cartesian::Function::getName ( )
inline

Definition at line 22 of file Function.h.

◆ getNumberOfArguments() [1/2]

uint Cartesian::Function::getNumberOfArguments ( )
inline

Definition at line 27 of file Function.h.

◆ getNumberOfArguments() [2/2]

uint Cartesian::Function::getNumberOfArguments ( )
inline

Definition at line 27 of file Function.h.

Member Data Documentation

◆ name_

std::string Cartesian::Function::name_
protected

Definition at line 33 of file Function.h.

◆ nArguments_

uint Cartesian::Function::nArguments_
protected

Definition at line 34 of file Function.h.


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