Learn R Programming

LearnClust (version 1.1)

clusterDistanceByApproach.details: To explain how to calculate the distance by approach option.

Description

To explain how to calculate the distance depending on option given.

Usage

clusterDistanceByApproach.details(distances, approach)

Arguments

distances

is a numeric vector.

approach

is a string. Type of function to apply.

Value

max, min or average from a vector.

Details

This function is part of the hierarchical clusterization method. The function explains how to calculate the distance value from distances.

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

Examples

Run this code
# NOT RUN {
distances1 <- c(4,14,24,34)

distances2 <- c(1:10)

clusterDistanceByApproach(distances1,'MAX')

clusterDistanceByApproach(distances2,'MIN')

# }

Run the code above in your browser using DataLab