help migrating old maple code with "stats" commands

June 28 2010 by pvrbik 98
false
Maple

1


Can anyone help me convert this outdated maple code into something current? Particularity I need help finding the equivalent command to "stats:-empirical" as I can't even find documentation for it.

 

with(stats): with(linalg): with(StringTools):

P1:=matrix([[.6,.3,.1],[.4,.5,.1],[.3,.4,.3]]);

j:=1:  res:="S":

for i to 50 do  

    j:=random[empirical[op(convert(row(P1,j),list))]](): 

    res:=cat(res,"SCR"[j]) 

end do:

res;

     "SSSSSSCSCCCSSCSSRRCCRRSSSSSSCCCSCCCSSSCSCSRCCCSCRSS"

 

Thanks,

Paul Vrbik

 
Loading Comments & Answers

You must be logged into your MaplePrimes account in order to post a comment. If you don't have an account, you can create an account here.

     

Forgot Your Password? Create an Account