small_cl: Paste a random cell in the smallest cluster in one of his...

Description Usage Arguments Value Examples

View source: R/small_cl.R

Description

Find the smallest clusters in a matrix and of them, choose one randomly and add one cell randomly in one of his neighbors.

Usage

1

Arguments

matrix

a matrix object of class matrix.

Value

Returns the input matrix object with a added cel in matrix.

Examples

1
2
3
4
n<-10
p<-0.5
data<- clusters_matrix(n,p)
small_cl(data)

FrankBaut/RandomClustering documentation built on Feb. 19, 2020, 2:07 a.m.