This class implements a reduce operation, which reduces the values of all dimensions to a single value. More...
#include <specific_statistical_evaluations.h>
Public Member Functions | |
ComposedDimensionReduceOperation (VectorReduceOperation *vector_reduce_operation) | |
The constructor, where the reduce operation can be specified. More... | |
std::vector< mpf_t * > | Evaluate (const std::vector< std::vector< mpf_t * > > &data) |
Reduces the entries of the given data matrix to a vector. More... | |
std::string | GetName () |
Returns a string representation of this object. More... | |
Public Member Functions inherited from highprecisionpso::ComposedStatisticReduceOperation | |
ComposedStatisticReduceOperation (VectorReduceOperation *vector_reduce_operation) | |
The constructor, where the reduce operation can be specified. More... | |
Public Member Functions inherited from highprecisionpso::StatisticReduceOperation | |
virtual | ~StatisticReduceOperation () |
Additional Inherited Members | |
Protected Attributes inherited from highprecisionpso::ComposedStatisticReduceOperation | |
VectorReduceOperation * | vector_reduce_operation |
The stored vector reduce operation. More... | |
Detailed Description
This class implements a reduce operation, which reduces the values of all dimensions to a single value.
Constructor & Destructor Documentation
highprecisionpso::ComposedDimensionReduceOperation::ComposedDimensionReduceOperation | ( | VectorReduceOperation * | vector_reduce_operation | ) |
The constructor, where the reduce operation can be specified.
- Parameters
-
vector_reduce_operation The reduce operation.
Member Function Documentation
|
virtual |
Reduces the entries of the given data matrix to a vector.
The data matrix contains a vector for each particle and each of those vectors has an entry for each dimension of the search space. This reduce operation reduces the dimensions of the search space together and therefore produces a value for each particle. For example if the vector reduce operation calculates the sum and the data matrix contains the squared positions of the particles, then for each particle the squared euclidean distance to the origin is calculated.
- Parameters
-
data The data matrix.
- Returns
- The reduced vector.
Implements highprecisionpso::ComposedStatisticReduceOperation.
|
virtual |
Returns a string representation of this object.
- Returns
- The name of this object.
Implements highprecisionpso::ComposedStatisticReduceOperation.
The documentation for this class was generated from the following file:
- src/statistics/specific_statistical_evaluations.h