@zfunction/genetics-js
Version:
Genetic and evolutionary algorithms framework for the web
9 lines (8 loc) • 615 B
TypeScript
import { BaseIndividual } from '../../individual/base';
import { Crossover, CrossoverParams, IndividualConstructor } from './Crossover';
export interface OnePointCrossoverParams<I extends BaseIndividual<T>, T> extends CrossoverParams<I, T> {
}
export declare class OnePointCrossover<I extends BaseIndividual<T>, T> implements Crossover<I, T, OnePointCrossoverParams<I, T>> {
cross(firstParent: I, secondParent: I, individualConstructor: IndividualConstructor<I, T>, engine?: import("random-js").Engine): I[];
crossWith(firstParent: I, secondParent: I, params: OnePointCrossoverParams<I, T>): I[];
}