#include <algorithm>
#include <numeric>
#include <vector>
#include "autopas/options/SelectorStrategyOption.h"
#include "autopas/utils/ExceptionHandler.h"
Go to the source code of this file.
Namespaces | |
namespace | autopas |
This is the main namespace of AutoPas. | |
namespace | autopas::OptimumSelector |
Collection of functions for selecting the optimum value out of a vector of values according to a given strategy. | |
Functions | |
long | autopas::OptimumSelector::minValue (const std::vector< long > &values) |
Minimal value. | |
long | autopas::OptimumSelector::meanValue (const std::vector< long > &values) |
Arithmetic mean. | |
template<class T > | |
T | autopas::OptimumSelector::medianValue (std::vector< T > values) |
Median value. | |
long | autopas::OptimumSelector::optimumValue (const std::vector< long > &values, SelectorStrategyOption strategy) |
Optimal value according to passed strategy. | |