star_discrepancy#
Namespaces#
Types#
Grid#
-
using ioh::problem::star_discrepancy::Grid = std::vector<std::vector<double>>#
Typedef for point-grid types.
Functions#
generate_grid#
-
template<typename Sampler>
inline Grid ioh::problem::star_discrepancy::generate_grid(const int instance, const int n_variables, const size_t n_points)# Method to Generate a grid of samples.
- Parameters:
instance – the instance number, used as random seed for the sample
n_variables – the dimension of each sample
n_points – the number of samples
- Template Parameters:
Sampler – the sampler type
- Returns:
a grid of points
load_default_instances#
-
template<typename T>
inline InstanceBasedProblem::Constructors<T, int, int> ioh::problem::star_discrepancy::load_default_instances()# Loader for default instances.
- Template Parameters:
T – the type of StarDiscrepancy method (TODO: check for proper interface)
- Returns:
local_discrepancy#
-
inline double ioh::problem::star_discrepancy::local_discrepancy(const std::vector<double> &x, const Grid &grid)#
local start discrepancy method for a (continous) point x
- Parameters:
x – the point to be evaluated
grid – the grid to compute discr on
- Returns:
double the local discrepancy of x using grid