UNPKG

@zfunction/genetics-js

Version:

Genetic and evolutionary algorithms framework for the web

11 lines (10 loc) 455 B
import { Engine } from 'random-js'; import { BaseIndividual } from '../../individual/base/BaseIndividual'; import { Population } from '../../population/Population'; export interface IndividualsSelectionParams { selectionCount: number; engine: Engine; } export interface IndividualsSelection<I extends BaseIndividual<T>, T, Params extends IndividualsSelectionParams> { selectWith(population: Population<I, T>, params: Params): I[]; }