Learn R Programming

LearnClust (version 1.1)

mdAgglomerative.details: Matrix distance by distance and approach type.

Description

To explain how to calculate the matrix distance by using distance and approach type.

Usage

mdAgglomerative.details(list, distance, approach)

Arguments

list

is a clusters list.

distance

is a literal. The distance type to be used.

approach

is a literal. The approach type to be used.

Value

A matrix distance. Explanation.

Details

This function is part of the hierarchical clusterization method. The function calculates the matrix distance by using the distance and approach type given.

The list parameter will be a list with the clusters as rows and columns.

The function avoids distances equal 0 and undefined clusters.

Examples

Run this code
# NOT RUN {
data <- c(1,2,1,3,1,4,1,5,1,6)

clusters <- toList(data)

mdAgglomerative.details(clusters, 'EUC', 'MAX')

mdAgglomerative.details(clusters, 'CHE', 'AVG')

# }

Run the code above in your browser using DataLab