highprecisionpso::CombineSpecificFunction Class Reference

This class implements a specific function, which combines two specific functions with an operation. More...

#include <specific_functions.h>

Inheritance diagram for highprecisionpso::CombineSpecificFunction:

Public Member Functions

 CombineSpecificFunction (PairReduceOperation *operation, SpecificFunction *operator1, SpecificFunction *operator2)
 The constructor, which specifies the combination operation and the two specific functions, which should be combined. More...
 
std::vector< mpf_t * > Eval (const std::vector< mpf_t * > &pos)
 Returns the evaluation of the combination of the two specific functions. More...
 
std::string GetName ()
 Returns a string representation of this object. More...
 
- Public Member Functions inherited from highprecisionpso::SpecificFunction
virtual ~SpecificFunction ()
 The destructor. More...
 

Detailed Description

This class implements a specific function, which combines two specific functions with an operation.

Constructor & Destructor Documentation

highprecisionpso::CombineSpecificFunction::CombineSpecificFunction ( PairReduceOperation operation,
SpecificFunction operator1,
SpecificFunction operator2 
)

The constructor, which specifies the combination operation and the two specific functions, which should be combined.

Parameters
operationThe combine operation.
operator1The first parameter of the operation.
operator2The second parameter of the operation.

Member Function Documentation

std::vector<mpf_t*> highprecisionpso::CombineSpecificFunction::Eval ( const std::vector< mpf_t * > &  pos)
virtual

Returns the evaluation of the combination of the two specific functions.

Parameters
posThe position.
Returns
The evaluation of the position.

Implements highprecisionpso::SpecificFunction.

std::string highprecisionpso::CombineSpecificFunction::GetName ( )
virtual

Returns a string representation of this object.

Returns
The name of the object.

Implements highprecisionpso::SpecificFunction.


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