moocore.

avg_hausdorff_dist#

moocore.avg_hausdorff_dist(points, /, ref, *, maximise=False, p=1)[source]#

Average Hausdorff distance.

See also

For examples, see igd_plus(). For details of the calculation, see Inverted Generational Distance (IGD and IGD+) and Averaged Hausdorff Distance.

Parameters:
  • points (ArrayLike) – 2D array of numerical values, where each row gives the coordinates of a point in objective space. If the array is created by the read_datasets() function, remove the last column.

  • ref (ArrayLike) – Reference set as a 2D array of numerical values. Must have the same number of columns as points.

  • maximise (bool | Sequence[bool | int]) – Whether the objectives must be maximised instead of minimised. Either a single boolean value that applies to all objectives or a list of boolean values, with one value per objective. Also accepts a 1D array with values 0 or 1 for each objective. (default: False)

  • p (int) – Hausdorff distance parameter. Must be larger than 0. (default: 1)

Returns:

float – A single numerical value.