Learn R Programming

UAHDataScienceUC (version 1.0.1)

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.

Author

Eduardo Ruiz Sabajanes, eduardo.ruizs@edu.uah.es