Type alias SplitFunction<ChromosomeType, SplitGenesType>

SplitFunction<ChromosomeType, SplitGenesType>: ((chromosomeA: ChromosomeType, chromosomeB: ChromosomeType) => [SplitGenesType[], SplitGenesType[]])

Type Parameters

Type declaration

    • (chromosomeA: ChromosomeType, chromosomeB: ChromosomeType): [SplitGenesType[], SplitGenesType[]]
    • Description

      Defines the split function.

      The split functions receives two chromosomes and returns a tuple of array of genes. The first array is the split of the first chromosome and the second array is the split of the second chromosome.

      Returns

      A tuple. The first element has an array with the split genes of the first chromosome and the second element has an array with the split genes of the second chromosome.

      Parameters

      • chromosomeA: ChromosomeType

        The first chromosome to split.

      • chromosomeB: ChromosomeType

        The second chromosome to split.

      Returns [SplitGenesType[], SplitGenesType[]]

Generated using TypeDoc