search for: emptymatrix

Displaying 1 result from an estimated 1 matches for "emptymatrix".

2011 Nov 29
3
fill binary matrices with random 1s
...ugh histories on random fill algorithms but all packages I can find nothing as simple as the random fill I am looking for., sorry for bothering, Thank you for any help in advance. Something that starts along the lines of the following? Sorry this example is atrocious. matrixfill <- function(emptymatrix, K=fullmatrix, time=100, from=0, to=time) { N <- numeric(time+1) N[1] <- emptymatrix for (i in 1:time) N[i+1] <- N[i]+"place random 1 in a random xy position" until K. Calculate Density of matrix .... [[alternative HTML version deleted]]