Package-level declarations

Types

Link copied to clipboard
data class ChromosomeArray<T, F : Comparable<F>>(var value: Array<T>, var fitness: F? = null, clone: ChromosomeArray<T, F>.() -> ChromosomeArray<T, F>? = null) : Chromosome<Array<T>, F>

Base instance for Chromosome with value as Array of something

Link copied to clipboard
data class ChromosomeBooleanArray<F : Comparable<F>>(var value: BooleanArray, var fitness: F? = null) : Chromosome<BooleanArray, F>

Base instance for Chromosome with value as BooleanArray of something

Link copied to clipboard
data class ChromosomeByteArray<F : Comparable<F>>(var value: ByteArray, var fitness: F? = null) : Chromosome<ByteArray, F>

Base instance for Chromosome with value as ByteArray of something

Link copied to clipboard
data class ChromosomeCharArray<F : Comparable<F>>(var value: CharArray, var fitness: F? = null) : Chromosome<CharArray, F>

Base instance for Chromosome with value as CharArray of something

Link copied to clipboard
data class ChromosomeDoubleArray<F : Comparable<F>>(var value: DoubleArray, var fitness: F? = null) : Chromosome<DoubleArray, F>

Base instance for Chromosome with value as DoubleArray of something

Link copied to clipboard
data class ChromosomeFloatArray<F : Comparable<F>>(var value: FloatArray, var fitness: F? = null) : Chromosome<FloatArray, F>

Base instance for Chromosome with value as FloatArray of something

Link copied to clipboard
data class ChromosomeIntArray<F : Comparable<F>>(var value: IntArray, var fitness: F? = null) : Chromosome<IntArray, F>

Base instance for Chromosome with value as IntArray of something

Link copied to clipboard
data class ChromosomeLongArray<F : Comparable<F>>(var value: LongArray, var fitness: F? = null) : Chromosome<LongArray, F>

Base instance for Chromosome with value as LongArray of something

Link copied to clipboard
data class ChromosomeMutableList<T, F : Comparable<F>>(var value: MutableList<T>, var fitness: F? = null, clone: ChromosomeMutableList<T, F>.() -> ChromosomeMutableList<T, F>? = null) : Chromosome<MutableList<T>, F>

Base instance for Chromosome with value as MutableList of something

Link copied to clipboard
data class ChromosomeShortArray<F : Comparable<F>>(var value: ShortArray, var fitness: F? = null, clone: ChromosomeShortArray<F>.() -> ChromosomeShortArray<F>? = null) : Chromosome<ShortArray, F>

Base instance for Chromosome with value as ShortArray of something

Link copied to clipboard
data class ChromosomeString<F : Comparable<F>>(var value: String, var fitness: F? = null) : Chromosome<String, F>

Base instance for Chromosome with value as String of something

Functions

Link copied to clipboard
inline fun <T, F : Comparable<F>> Random.array(size: Int, factory: (index: Int, random: Random) -> T, noinline clone: ChromosomeArray<T, F>.() -> ChromosomeArray<T, F>?): ChromosomeArray<T, F>

Create ChromosomeArray instance.

Link copied to clipboard
inline fun <T, F : Comparable<F>> booleans(size: Int, crossinline factory: (index: Int, random: Random) -> T, noinline clone: ChromosomeArray<T, F>.() -> ChromosomeArray<T, F>?): PopulationFactory<Array<T>, F>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <F : Comparable<F>> chars(size: Int, allowedChars: List<Char> = defaultAllowedChars): PopulationFactory<CharArray, F>
Link copied to clipboard
fun <F : Comparable<F>> Random.chars(size: Int, allowedChars: List<Char> = defaultAllowedChars): ChromosomeCharArray<F>

Create ChromosomeCharArray instance

Link copied to clipboard
fun <F : Comparable<F>> doubles(size: Int, from: Double? = null, until: Double? = null): PopulationFactory<DoubleArray, F>
Link copied to clipboard
fun <F : Comparable<F>> Random.doubles(size: Int, from: Double? = null, until: Double? = null): ChromosomeDoubleArray<F>

Create ChromosomeDoubleArray instance.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <F : Comparable<F>> ints(size: Int, from: Int? = null, until: Int? = null): PopulationFactory<IntArray, F>
Link copied to clipboard
fun <F : Comparable<F>> Random.ints(size: Int, from: Int? = null, until: Int? = null): ChromosomeIntArray<F>

Create ChromosomeIntArray instance.

Link copied to clipboard
fun <F : Comparable<F>> longs(size: Int, from: Long? = null, until: Long? = null): PopulationFactory<LongArray, F>
Link copied to clipboard
fun <F : Comparable<F>> Random.longs(size: Int, from: Long? = null, until: Long? = null): ChromosomeLongArray<F>

Create ChromosomeLongArray instance.

Link copied to clipboard
inline fun <T, F : Comparable<F>> mutableList(size: Int, crossinline factory: (index: Int, random: Random) -> T, noinline clone: ChromosomeMutableList<T, F>.() -> ChromosomeMutableList<T, F>?): PopulationFactory<MutableList<T>, F>
Link copied to clipboard
inline fun <T, F : Comparable<F>> Random.mutableList(size: Int, factory: (index: Int, random: Random) -> T, noinline clone: ChromosomeMutableList<T, F>.() -> ChromosomeMutableList<T, F>? = null): ChromosomeMutableList<T, F>

Create ChromosomeMutableList instance

Link copied to clipboard
fun <F : Comparable<F>> string(size: Int, allowedChars: List<Char> = defaultAllowedChars): PopulationFactory<String, F>
Link copied to clipboard
fun <F : Comparable<F>> Random.string(size: Int, allowedChars: List<Char> = defaultAllowedChars): ChromosomeString<F>

Create ChromosomeString instance