highprecisionpso::NamedStatistic Class Reference

This class implements a statistic, where the name is set manually. More...

#include <direct_statistics.h>

Inheritance diagram for highprecisionpso::NamedStatistic:

Public Member Functions

 NamedStatistic (std::string name, Statistic *statistic)
 The constructor, where the name and the actual statistic can be specified. More...
 
std::vector< mpf_t * > Evaluate ()
 Performs some statistical evaluations. 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, where the name is set manually.

Constructor & Destructor Documentation

highprecisionpso::NamedStatistic::NamedStatistic ( std::string  name,
Statistic statistic 
)

The constructor, where the name and the actual statistic can be specified.

Parameters
nameThe name of this statistic.
statisticThe actual statistic, which will be evaluated.

Member Function Documentation

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

Performs some statistical evaluations.

Returns
The result of the statistical evaluations.

Implements highprecisionpso::Statistic.

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