Methods
find
- find(gene: number): number
-
Parameters
Returns number
initFloat
- initFloat(length: number, lower: number, upper: number): void
-
Parameters
-
length: number
-
lower: number
-
upper: number
Returns void
initInteger
- initInteger(length: number, lower: number, upper: number): void
-
Parameters
-
length: number
-
lower: number
-
upper: number
Returns void
initPermutation
- initPermutation(length: number): void
mutation
- mutation(mutationRate: number): void
setCrossover
- setCrossover(type: string): void
setMutation
- setMutation(type: string): void
swap
- swap(i: number, j: number): void
toString
- toString(code?: boolean): string
-
Parameters
Returns string