Displaying 1 result from an estimated 1 matches for "payoffvec".
2004 Jun 29
0
gambling problem
...o
improve the speed by not utilizing loops. is that possible?
* another question? in the function called GAMBLING, i use the
following :
a<-COUNTER(reelpic,nreels,countcombs,payoffcombs,payoff,bet)
countcombs<-a$countcombs
payoff<-a$payoff
payoffvec[i]<-payoff
in order to count up the number of times each of the times we get
each of the payoff symbol combinations (ie H, HH, HHH, D, DD, DDD,
... J,JJ,JJJ, Ca, CaCa, CaCaCa). countcombs is a vector that
contains the counts of the various payoff symbol combinations. the...