## Uses of Class
org.apache.ignite.ml.util.genetic.Chromosome

- Packages that use Chromosome
  Package | Description
  --- | ---
  org.apache.ignite.ml.util.genetic | Contains some genetic algorithms for discrete optimization task in ML module locally.

- - ### Uses of Chromosome in org.apache.ignite.ml.util.genetic

    Methods in org.apache.ignite.ml.util.genetic that return Chromosome
    Modifier and Type | Method and Description
    --- | ---
    `Chromosome` | Chromosome.`copy()` Creates chromosome copy.
    `Chromosome` | Population.`getChromosome(int idx)` Returns an individual chromosome.
    `Chromosome` | Population.`getChromosome(Integer idx)` Returns the chromosome by given index.
    `Chromosome[]` | Population.`selectBestKChromosome(int k)` Selects the top K chromosomes by fitness value from the smallest to the largest.

    Methods in org.apache.ignite.ml.util.genetic with parameters of type Chromosome
    Modifier and Type | Method and Description
    --- | ---
    `void` | Population.`setChromosome(int idx, Chromosome chromosome)` Sets the chromsome for given index.

    Method parameters in org.apache.ignite.ml.util.genetic with type arguments of type Chromosome
    Modifier and Type | Method and Description
    --- | ---
    `void` | Population.`calculateFitnessForAll(Function<Chromosome,Double> fitnessFunction)` Calculates fitness for all chromosomes with custom fitness function.
    `double` | Population.`calculateFitnessForChromosome(int idx, Function<Chromosome,Double> fitnessFunction)` Calculates fitness for chromosome found by index with custom fitness function.
    `GeneticAlgorithm` | GeneticAlgorithm.`withFitnessFunction(Function<Chromosome,Double> fitnessFunction)` Sets the custom fitness function.

2021 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.11.0
Release Date | : September 11 2021