population
fun <V, F> population(size: Int, buffer: Int = 0, name: String = DEFAULT_POPULATION_NAME, factory: PopulationFactory<V, F>): PanmicticPopulation<V, F>
Creates PanmicticPopulation.
Parameters
size
the current size of population
name
name of population, default value = DEFAULT_POPULATION_NAME, used to identify different populations
factory
PopulationFactory for this population. Creates new Chromosome
fun <V, F> population(population: Array<Chromosome<V, F>>, buffer: Int = 0, name: String = DEFAULT_POPULATION_NAME, factory: PopulationFactory<V, F>): PanmicticPopulation<V, F>
Creates PanmicticPopulation.
Parameters
population
initial or existing population. Size of population will be equal to Array.size - buffer. (Default buffer is 0)
buffer
the amount of reserved space in a population.
name
name of population, default value = DEFAULT_POPULATION_NAME, used to identify different populations
factory
PopulationFactory for this population. Creates new Chromosome