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.


mindyyang/GA-R-package- documentation built on May 12, 2019, 12:31 a.m.