gka_mutation: Mutation method
Description
Mutation method
Usage
gka_mutation(chromosome, prob, k, mut_probability)
Value
a vector of size n
with the cluster assignments for each
observation i.e. a new chromosome.
Arguments
- chromosome
a vector of size n
with the cluster assignments for
each observation.
- prob
a matrix of size n
by k
with the probability of
each allele mutating to a specific cluster.
- k
the number of clusters.
- mut_probability
the probability of a mutation occurring.