RandomSeedGenerator: RandomSeedGenerator

Description Usage Arguments Value Examples

View source: R/VariousFunctions.R

Description

Initizalize seeds for the KSeeds clustering algorithm

Usage

1
RandomSeedGenerator(num_clusters, numbrowfeatures)

Arguments

num_clusters

number of clusters desired

numbrowfeatures

number of rows of the features matrix

Value

s list of seeds

Examples

1
2
3
4
5
6
r <- 8
c <- 10
m0 <- matrix(0, r, c)
num_clusters=4
features<-apply(m0, c(1,2), function(x) sample(c(0,1),1))
s<-RandomSeedGenerator(4,nrow(features))

DrugClust documentation built on May 30, 2017, 2:30 a.m.