doubles

fun <F : Comparable<F>> doubles(size: Int, from: Double? = null, until: Double? = null): PopulationFactory<DoubleArray, F>

Creates PopulationFactory for ChromosomeDoubleArray with size.

Parameters

from

lower bound for the generator (inclusive)

until

upper limit for generator (exclusive)


fun <F : Comparable<F>> Random.doubles(size: Int, from: Double? = null, until: Double? = null): ChromosomeDoubleArray<F>

Create ChromosomeDoubleArray instance.

Parameters

size

gene count

from

lower bound for the generator (inclusive)

until

upper limit for generator (exclusive)