similarity {diceR} | R Documentation |
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 |
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)
[Package diceR version 2.2.0 Index]