ECF 1.5
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Evaluator Class Reference

Public Types

enum  Functions {
  ADD , SUB , MUL , DIV ,
  SIN , COS
}
 

Public Member Functions

bool initialize ()
 
void initFunctionNames ()
 
double executeParsedExpression (uint sample, uint iTree=0)
 
double execute ()
 

Public Attributes

std::vector< std::vector< double > > data
 
std::vector< double > values
 
std::vector< bool > valueFlags
 
uint nSamples
 
uint nVariables
 
std::vector< string > funcNames
 
std::vector< string > termNames
 
std::vector< std::vector< uint > > parsedExpression
 
int position
 
uint iExpression
 
uint iSample
 

Static Public Attributes

static const uint TERMINALS = 1000
 
static const uint SUBTREES = 10000
 

Detailed Description

Definition at line 11 of file Evaluator.h.

Member Enumeration Documentation

◆ Functions

enum Evaluator::Functions

Definition at line 21 of file Evaluator.h.

Member Function Documentation

◆ execute()

double Evaluator::execute ( )

Definition at line 45 of file Evaluator.cpp.

◆ executeParsedExpression()

double Evaluator::executeParsedExpression ( uint  sample,
uint  iTree = 0 
)

Definition at line 32 of file Evaluator.cpp.

◆ initFunctionNames()

void Evaluator::initFunctionNames ( )

Definition at line 16 of file Evaluator.cpp.

◆ initialize()

bool Evaluator::initialize ( )

Definition at line 6 of file Evaluator.cpp.

Member Data Documentation

◆ data

std::vector< std::vector<double> > Evaluator::data

Definition at line 14 of file Evaluator.h.

◆ funcNames

std::vector<string> Evaluator::funcNames

Definition at line 25 of file Evaluator.h.

◆ iExpression

uint Evaluator::iExpression

Definition at line 28 of file Evaluator.h.

◆ iSample

uint Evaluator::iSample

Definition at line 29 of file Evaluator.h.

◆ nSamples

uint Evaluator::nSamples

Definition at line 17 of file Evaluator.h.

◆ nVariables

uint Evaluator::nVariables

Definition at line 18 of file Evaluator.h.

◆ parsedExpression

std::vector< std::vector<uint> > Evaluator::parsedExpression

Definition at line 26 of file Evaluator.h.

◆ position

int Evaluator::position

Definition at line 27 of file Evaluator.h.

◆ SUBTREES

const uint Evaluator::SUBTREES = 10000
static

Definition at line 23 of file Evaluator.h.

◆ TERMINALS

const uint Evaluator::TERMINALS = 1000
static

Definition at line 22 of file Evaluator.h.

◆ termNames

std::vector<string> Evaluator::termNames

Definition at line 25 of file Evaluator.h.

◆ valueFlags

std::vector<bool> Evaluator::valueFlags

Definition at line 16 of file Evaluator.h.

◆ values

std::vector<double> Evaluator::values

Definition at line 15 of file Evaluator.h.


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