Spacing

Spacing #

File position: /EMOC/src/metric/spacing.h and /EMOC/src/metric/spacing.cpp

double CalculateSpacing(Individual **pop, int pop_num, int obj_num)

Calculate the spacing value of current population pop.

Parameter:
pop: Individual**, default=None
    The population which need to be initialized. It's an array of Individual* where each Individual* is a pointer to a individual in the population.

pop_num: int, default=None
    The size of the given population.

obj_num: int, default=None
    The number of objectives.
Returns:
spacing_value: double
    Spacing value of current population pop.