Learn R Programming

UAHDataScienceUC (version 1.0.1)

gka_crossover: Crossover method i.e. K-Means Operator

Description

K-Means Operator (KMO) which replaces the crossover operator in the Genetic K-Means algorithm (GKA).

Usage

gka_crossover(data, centers)

Value

a vector of size n with the cluster assignments for each observation i.e. a new chromosome.

Arguments

data

a set of observations, presented as a matrix-like object where every row is a new observation. The matrix is of size n by m.

centers

a matrix of size k by m with the cluster centers for a specific individual in the population.

Author

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