highprecisionpso::IncreasingOrderNthObjectReduceOperation Class Reference
This vector reduce operation reduces a vector by sorting the vector and returning the value at the respective position of the sorted vector. More...
#include <general_objects.h>
Inheritance diagram for highprecisionpso::IncreasingOrderNthObjectReduceOperation:
Public Member Functions | |
IncreasingOrderNthObjectReduceOperation (int order_id) | |
The constructor, where the remaining index can be specified. More... | |
mpf_t * | Evaluate (const std::vector< mpf_t * > &vec) |
Reduces the vector by sorting the vector and then ignoring all entries except the specified one. More... | |
std::string | GetName () |
Returns a string representation of this object. More... | |
Public Member Functions inherited from highprecisionpso::VectorReduceOperation | |
virtual | ~VectorReduceOperation () |
The destructor. More... | |
Detailed Description
This vector reduce operation reduces a vector by sorting the vector and returning the value at the respective position of the sorted vector.
Constructor & Destructor Documentation
highprecisionpso::IncreasingOrderNthObjectReduceOperation::IncreasingOrderNthObjectReduceOperation | ( | int | order_id | ) |
The constructor, where the remaining index can be specified.
- Parameters
-
order_id The remaining index.
Member Function Documentation
|
virtual |
Reduces the vector by sorting the vector and then ignoring all entries except the specified one.
- Parameters
-
vec The vector which should be reduced.
- Returns
- The value of the entry at the specified position of the sorted vector.
Implements highprecisionpso::VectorReduceOperation.
|
virtual |
Returns a string representation of this object.
- Returns
- The name of the object.
Implements highprecisionpso::VectorReduceOperation.
The documentation for this class was generated from the following file:
- src/general/general_objects.h