Package-level declarations
Functions
Link copied to clipboard
fun <V, F> Array<Chromosome<V, F>>.selectionBest(count: Int, from: Int, to: Int): Array<Chromosome<V, F>>
Find and moves the best chromosomes to the beginning of source. (Not sort source)
Link copied to clipboard
Select randomly chromosome from source
Link copied to clipboard
fun <V> selectionRoulette(source: Array<Chromosome<V, Byte>>, totalFitness: Long, random: Random): Chromosome<V, Byte>
fun <V> selectionRoulette(source: Array<Chromosome<V, Double>>, totalFitness: Double, random: Random): Chromosome<V, Double>
fun <V> selectionRoulette(source: Array<Chromosome<V, Float>>, totalFitness: Float, random: Random): Chromosome<V, Float>
fun <V> selectionRoulette(source: Array<Chromosome<V, Int>>, totalFitness: Long, random: Random): Chromosome<V, Int>
fun <V> selectionRoulette(source: Array<Chromosome<V, Long>>, totalFitness: Long, random: Random): Chromosome<V, Long>
fun <V> selectionRoulette(source: Array<Chromosome<V, Short>>, totalFitness: Long, random: Random): Chromosome<V, Short>
Executes roulette selection. It is assumed that all individuals are "placed" on the roulette wheel.
Link copied to clipboard
fun <V, F> selectionTournament(source: Array<Chromosome<V, F>>, tournamentSize: Int, random: Random): Chromosome<V, F>
Executes tournament selection:
Link copied to clipboard
fun <V, F> Array<Chromosome<V, F>>.selectionWorst(count: Int, from: Int, to: Int): Array<Chromosome<V, F>>
Find and moves the worst chromosomes to the beginning of source. (Not sort source)