Achlioptas.hclustering: Multiple Hierarchical clusterings using Achlioptas random...

Achlioptas.hclusteringR Documentation

Multiple Hierarchical clusterings using Achlioptas random projections

Description

Multiple Hierarchical clusterings using Achlioptas random projections of the data.

Usage

Achlioptas.hclustering(M, dim, c = 3, hmethod = "average", n = 50, 
scale = TRUE, seed = 100, distance="euclidean")

Achlioptas.hclustering.tree(M, dim, hmethod = "average", n = 50, scale = TRUE, 
seed = 100, distance = "euclidean")

Arguments

M

matrix of data: rows are variables and columns are examples

dim

subspace dimension

c

number of clusters

hmethod

the agglomeration method to be used. This should be one of "ward.D", "single", "complete", "average", "mcquitty", "median" or "centroid", according to the hclust method of the package stats.

n

number of random projections

scale

if TRUE (default) Achlioptas random projections are scaled

seed

numerical seed for the random generator

distance

it must be one of the two: "euclidean" (default) or "pearson" (that is 1 - Pearson correlation)

Value

a list with components "cluster" and "tree":

cluster

list of the n clusterings obtained. Each element is in turn a list of vectors that correspond to the clusters of the clustering. Each cluster is represented by a vector of integers whose values corresponds to the indices of the columns (examples) of the original data.

tree

list of the trees generated by the multiple clusterings

Achlioptas.hclustering.tree returns only the list of the trees.

Author(s)

Giorgio Valentini valentini@di.unimi.it

References

D.Achlioptas, Database-friendly random projections., in: Proc. ACM Symp. on the Principles of Database Systems, Contemporary Mathematics, 2001, pp. 274-281.

See Also

Achlioptas.random.projection, Plus.Minus.One.random.projection,

norm.random.projection,random.subspace

Examples


# 20 hierarchical clusterings on multiple Achlioptas projected data with 
# subspace dimension equal to 100
M <- generate.sample0(n=10, m=2, sigma=1, dim=800)
l <- Achlioptas.hclustering(M, dim=100, hmethod = "average", n = 20, scale = TRUE)
# Equal as above, but only the trees are generated
l <- Achlioptas.hclustering.tree(M, dim=100, hmethod = "average", n = 20, scale = TRUE)
# 10 hierarchical clusterings on multiple Achlioptas projected data with 
# subspace dimension equal to 200
M <- generate.sample0(n=8, m=1, sigma=2, dim=1000)
l <- Achlioptas.hclustering(M, dim=200, hmethod = "average", n = 10, scale = TRUE)


clusterv documentation built on June 8, 2025, 10:21 a.m.