highprecisionpso::ConstantStatistic Class Reference

This class implements a statistic, which always evaluates to the same value. More...

#include <direct_statistics.h>

Inheritance diagram for highprecisionpso::ConstantStatistic:

Public Member Functions

 ConstantStatistic (int dimensions, ConstantEvaluation *constant_evaluation)
 The constructor, where the number of dimensions for this statistic and the generation of the constant value can be specified. More...
 
std::vector< mpf_t * > Evaluate ()
 Returns the vector with specified number of entries and specified content. More...
 
std::string GetName ()
 Returns a string representation of this object. More...
 
- Public Member Functions inherited from highprecisionpso::Statistic
virtual ~Statistic ()
 
std::string EvaluationToString ()
 Calls the normal evaluation function and transforms the result to a string. More...
 

Detailed Description

This class implements a statistic, which always evaluates to the same value.

This statistic can be combined with other statistics to evaluate for example the distance to some constant value.

Constructor & Destructor Documentation

highprecisionpso::ConstantStatistic::ConstantStatistic ( int  dimensions,
ConstantEvaluation constant_evaluation 
)

The constructor, where the number of dimensions for this statistic and the generation of the constant value can be specified.

Parameters
dimensionsThe number of dimensions for this statistic.
constant_evaluationThe generation method for the constant value

Member Function Documentation

std::vector<mpf_t*> highprecisionpso::ConstantStatistic::Evaluate ( )
virtual

Returns the vector with specified number of entries and specified content.

Returns
The constant vector.

Implements highprecisionpso::Statistic.

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

Returns a string representation of this object.

Returns
The name of the object.

Implements highprecisionpso::Statistic.


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