star_discrepancy

Namespaces

Types

Grid

using ioh::problem::star_discrepancy::Grid = std::vector<std::vector<double>>

Typedef for point-grid types.

Functions

default_registry_entries

template<typename T>
inline std::vector<RegistryEntry<T>> ioh::problem::star_discrepancy::default_registry_entries()

Loader for default instances.

Template Parameters:

T – the type of StarDiscrepancy method (TODO: check for proper interface)

Returns:

the registry entries: ids 30-59, names like SobolStarDiscrepancy100

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

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