Description Usage Arguments Value Examples
Find the smallest clusters in a matrix and of them, choose one randomly and add one cell randomly in one of his neighbors.
1 |
matrix |
a matrix object of class |
Returns the input matrix
object with a added cel in matrix
.
1 2 3 4 | n<-10
p<-0.5
data<- clusters_matrix(n,p)
small_cl(data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.