clusterDistanceByApproach {LearnClust}R Documentation

To calculate the distance by approach option.

Description

To calculate the distance depending on option given.

Usage

clusterDistanceByApproach(distances, approach)

Arguments

distances

is a numeric vector.

approach

is a string. Type of function to apply.

Details

This function is part of the hierarchical clusterization method. The function calculates the distance value from distances.

approach indicates the algorithm used to get the value. Possible values: 'MAX', 'MIN', 'AVG'.

Value

max, min or average from a vector.

Author(s)

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

Juan José Cuadrado jjcg@uah.es

Universidad de Alcalá de Henares

Examples


distances1 <- c(4,14,24,34)

distances2 <- c(1:10)

clusterDistanceByApproach(distances1,'MAX')

clusterDistanceByApproach(distances2,'MIN')


[Package LearnClust version 1.1 Index]