initClusters: To initialize clusters for the divisive algorithm.

Description Usage Arguments Details Value Author(s) Examples

View source: R/initClusters.R

Description

To initialize clusters for the divisive algorithm.

Usage

1
initClusters(initList)

Arguments

initList

is a clusters list. It will contain clusters with one element.

Details

This function will calculate every cluster that can be created by joining initial clusters with each other. It creates clusters from length = 1 until a cluster with every element is created.

These clusters will be used to find the most different clusters that we can create by dividing the initial cluster.

Value

A cluster list.

Author(s)

Roberto Alcántara roberto.alcantara@edu.uah.es

Juan José Cuadrado jjcg@uah.es

Universidad de Alcalá de Henares

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data <- c(1:8)

matrix <- matrix(data,ncol=2)

listData <- toListDivisive(data)

listMatrix <- toListDivisive(matrix)

initClusters(listData)

initClusters(listMatrix)

LearnClust documentation built on Nov. 30, 2020, 1:09 a.m.