potential_calculator.h
Go to the documentation of this file.
1 
40 #ifndef HIGH_PRECISION_PSO_STATISTICS_POTENTIAL_CALCULATOR_H_
41 #define HIGH_PRECISION_PSO_STATISTICS_POTENTIAL_CALCULATOR_H_
42 
43 #include <gmp.h>
44 #include <string>
45 #include <vector>
46 
47 #include "general/particle.h"
49 
50 namespace highprecisionpso {
51 
56 public:
65  virtual mpf_t* Evaluate(Particle* p, int dim) = 0;
71  std::vector<std::vector<mpf_t*> > Evaluate();
72 };
73 
78 public:
93  mpf_t* Evaluate(Particle* p, int dim);
94  std::string GetName();
95 };
96 
101 public:
122  mpf_t* Evaluate(Particle* p, int dim);
123  std::string GetName();
124 
125 private:
126  const double scale_;
127 };
128 
133 public:
154  mpf_t* Evaluate(Particle* p, int dim);
155  std::string GetName();
156 
157 private:
158  const double scale_;
159 };
160 
161 } // namespace highprecisionpso
162 
163 #endif /* HIGH_PRECISION_PSO_STATISTICS_POTENTIAL_CALCULATOR_H_ */
The particles for the particle swarm optimization algorithm.
Definition: particle.h:54
std::vector< std::vector< mpf_t * > > Evaluate()
Calculates for all particles and dimensions the statistical values.
virtual std::string GetName()=0
Returns a string representation of this object.
This potential calculator can calculate the scaled absolute value of the velocity plus the distance t...
Definition: potential_calculator.h:100
This file contain classes, which can evaluate matrices depending on the current state of the particle...
This potential calculator can calculate the function difference statistic.
Definition: potential_calculator.h:77
This class is an abstract class. It supplies the interface for intermediate statistical evaluations...
Definition: specific_statistical_evaluations.h:54
This file contains information about the particles of the swarm.
This class is an abstract class. It supplies the interface for calculation of some statistical data...
Definition: potential_calculator.h:55
base namespace for this project.
Definition: absorption.h:45
This potential calculator can calculate the scaled square root of the absolute velocity plus the squa...
Definition: potential_calculator.h:132