Dimens

value class Dimens(val value: IntArray)

Dimens describes the dimensions of n-dimensional space of a CellularPopulation for CellularGA.

For example:

val dimens = Dimens.rectangle(length = 4, width = 3)
0 1 2 3
0 [0] [1] [2] [3]
1 [4] [5] [6] [7]
2 [8] [9] [10] [11]
dimens.size = 12 // size of population
dimens.count = 2 // rectangle is two-dimensional space

See also

Constructors

Link copied to clipboard
constructor(value: IntArray)

Types

Link copied to clipboard
object Factory

Properties

Link copied to clipboard
val count: Int

Count of dimensions

Link copied to clipboard
val size: Int

Size of n-dimensional space, where n 0.

Link copied to clipboard