Learn R Programming

apcluster (version 1.0.2)

show-methods: Display APResult objects

Description

Display method for S4 class APResult

Usage

## S3 method for class 'APResult':
show(object)

Arguments

object
An APResult object created by affinity propagation clustering

Value

  • show returns an invisible NULL

Details

show displays the most important information stored in object, namely number of data samples, number of iterations, input preference, final objective function values, exemplars, and clusters. For accessing more detailed information, it is necessary to directly the corresponding slots (see APResult).

References

http://www.bioinf.jku.at/software/apcluster

Frey, B. J. and Dueck, D. (2007) Clustering by passing messages between data points. Science 315, 972-976.

See Also

APResult-class, apcluster

Examples

Run this code
## create two Gaussian clouds
cl1 <- cbind(rnorm(100,0.2,0.05),rnorm(100,0.8,0.06))
cl2 <- cbind(rnorm(50,0.7,0.08),rnorm(50,0.3,0.05))
x <- rbind(cl1,cl2)

## compute similarity matrix (negative squared Euclidean)
sim <- negDistMat(x, r=2)

## run affinity propagation
apres <- apcluster(sim)

## show details of clustering results
show(apres)

Run the code above in your browser using DataLab