Displaying 1 result from an estimated 1 matches for "simlength".
2012 Jun 15
2
Looking for Speed in a Toy Simulation Example
...body could point me to
a) speed improvments in general
b) speed improvements using the compiler package: At what level is
cmpfun best used in this particular example?
Thank you very much,
Simon
###################################Code#########################################
noplayer <- 6
simlength <- 1e+05
decklength <- 5 * noplayer
#################################################
## Variant 1 ##
#################################################
## Initialize matrix to hold results
singlecolor <- matrix(NA, simlength, noplayer)
## construct t...