selectionBest

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)

Return

the same source with moved to the beginning chromosomes

Parameters

count

number of the best values to be moved to the beginning

from

index from for search in array (inclusive)

to

index to for search in array (exclusive)