CellularNeighborhood

CellularNeighborhood - basic interface defining neighborhood parameters for CellularGA.

See also

Inheritors

Functions

Link copied to clipboard
abstract fun neighborsCount(dimenCount: Int): Int

Calculates the neighbor chromosomes count depending on the dimension count of CellularPopulation.dimens.

Link copied to clipboard

Calculates universal matrix for neighbor's indices depending on the CellularPopulation.dimens. To calculate actual coordinates of neighbors for a target cell, need to sum coordinates from the universal matrix with the target cell coordinates.