Learn R Programming

LearnClust (version 1.1)

octileDistance.details: To explain how to calculate the Octile distance.

Description

To explain how to calculate the octile distance of two clusters.

Usage

octileDistance.details(x, y)

Arguments

x

is a numeric vector or a matrix. It represents the values of a cluster.

y

is a numeric vector or a matrix. It represents the values of a cluster.

Value

Octile distance value.

Details

This function is part of the hierarchical clusterization method. The function calculates the octile distance value from x and y.

Examples

Run this code
# NOT RUN {
x <- c(1,2)
y <- c(1,3)

cluster1 <- matrix(x,ncol=2)
cluster2 <- matrix(y,ncol=2)

octileDistance.details(x,y)

octileDistance.details(cluster1,cluster2)

# }

Run the code above in your browser using DataLab