clusterDistanceByApproach: To calculate the distance by approach option.

Description Usage Arguments Details Value Author(s) Examples

View source: R/clusterDistanceByApproach.R

Description

To calculate the distance depending on option given.

Usage

1

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

1
2
3
4
5
6
7
distances1 <- c(4,14,24,34)

distances2 <- c(1:10)

clusterDistanceByApproach(distances1,'MAX')

clusterDistanceByApproach(distances2,'MIN')

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