R/sim.rand.R

sim.rand<-function(n.nodes,n.edges)
{

z<-.C("Rrandsim",
	as.integer(n.nodes),
	as.integer(n.edges),
	mat=integer(n.nodes*n.nodes), PACKAGE="brainwaver")

mat<-z$mat
mat<-matrix(mat,n.nodes,n.nodes)

return(mat)

}

Try the brainwaver package in your browser

Any scripts or data that you put into this service are public.

brainwaver documentation built on May 2, 2019, 10:23 a.m.