mutation: Chromosome Mutation

Description Usage Arguments Details Value

Description

Make a chromosome with fixed probability 0.01 to mutate.

Usage

1
mutation(chr)

Arguments

chr

a boolean vector representing an individual chromosome.

Details

This function makes a chromosome have a 1 in each locale. If mutation happens at one locale, it will make the value in that locale from T to F or from F to T.

Value

Return a mutated chromosome vector with the same length as input.


RPackageGroupProject/GA documentation built on May 15, 2019, 4:17 a.m.