getss: Obtain the co-location matrix

Description Usage Arguments Examples

View source: R/wMetaC.R

Description

This function is to obtain the weighted co-location matrix from the clustering result for following ensemble clustering.

Usage

1
getss(pind, R, x, w1)

Arguments

rowColor

the clustering results by some clustering algorithms

Examples

1
2
3
 x = as.vector(sapply(1:C, function(i){paste(nC[,i], '_', i, sep = '')}))#convert the matrix (N*C) to vector (concatenating them)
 R = unique(x)#all unique labels
 alls = apply(cb, 2, getss, R = R, x = x, w1 = w1)#calculate the weight s for all combinations

shibiaowan/SHARP documentation built on April 28, 2021, 1:56 p.m.