highprecisionpso::ConstantSpecificFunction Class Reference

This class implements a specific function with an evaluation function that always evaluates to a vector of a predefined constant. More...

#include <specific_functions.h>

Inheritance diagram for highprecisionpso::ConstantSpecificFunction:

Public Member Functions

 ConstantSpecificFunction (ConstantEvaluation *constant_evaluation)
 The constructor, where the constant can be specified. More...
 
std::vector< mpf_t * > Eval (const std::vector< mpf_t * > &pos)
 Returns the evaluation of the current constant specific function. 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 with an evaluation function that always evaluates to a vector of a predefined constant.

Constructor & Destructor Documentation

highprecisionpso::ConstantSpecificFunction::ConstantSpecificFunction ( ConstantEvaluation constant_evaluation)

The constructor, where the constant can be specified.

Parameters
constant_evaluationThe constant evaluation, which does the actual evaluation.

Member Function Documentation

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

Returns the evaluation of the current constant specific function.

Parameters
posThe position.
Returns
The constant vector.

Implements highprecisionpso::SpecificFunction.

std::string highprecisionpso::ConstantSpecificFunction::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: