Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

similarity

Similarity Matrices


Description

cts computes the connected triple based similarity matrix, srs computes the simrank based similarity matrix, and asrs computes the approximated simrank based similarity matrix.

Usage

cts(E, dc)

srs(E, dc, R)

asrs(E, dc)

Arguments

E

an N by M matrix of cluster ensembles

dc

decay factor, ranges from 0 to 1 inclusive

R

number of iterations for srs

Value

an N by N CTS, SRS, or ASRS matrix

Author(s)

Johnson Liu, Derek Chiu

References

MATLAB functions cts, srs, asrs in package LinkCluE by Simon Garrett

Examples

set.seed(1)
E <- matrix(rep(sample(1:4, 800, replace = TRUE)), nrow = 100)
CTS <- cts(E = E, dc = 0.8)
SRS <- srs(E = E, dc = 0.8, R = 3)
ASRS <- asrs(E = E, dc = 0.8)
purrr::walk(list(CTS, SRS, ASRS), str)

diceR

Diverse Cluster Ensemble in R

v1.0.3
MIT + file LICENSE
Authors
Derek Chiu [aut, cre], Aline Talhouk [aut], Johnson Liu [ctb, com]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.