powered by
Tool for vector to matrix
getZmat(ZOneDim, m, n)
a vector.
the number of cluster.
sample size.
adjacency matrix
# NOT RUN { m <- 20 n <- 500 ZOneDim <- sample(seq_len(m), n, replace = TRUE) #' # } # NOT RUN { getZmat(ZOneDim, m, n) # }
Run the code above in your browser using DataLab