Description Usage Arguments Value Examples
View source: R/clusters_matrix.R
First generate a binary matrix of size NxN. p is a indicates how many 1 will be put on a matrix randomly. This will genrate cluters coneceted. cluster_matrix label this clusters.
1 | clusters_matrix(n,p)
|
n |
an integer object. |
p |
a float object, take values between 0 and 1. |
Returns a matrix
of size NxN and probability of filling p. Generate clusters with different label.
1 2 3 4 | n<-10
p<-0.5
data<- clusters_matrix(n,p)
data
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.