Displaying 1 result from an estimated 1 matches for "decklength".
2012 Jun 15
2
Looking for Speed in a Toy Simulation Example
...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 the deck to sample from...