Hopping+models+Transfer+matrices,+Jamming_Questions

Please ask your questions below by directly editing the page
To edit the page, you have to become a member of the wiki by cliking on the Join link (top-right of the page), or by sending an email to one of us.

You can insert math formulæ using LaTeX code: //e.g.// typing code math \pi_C(t+1)=\sum_{C'} \pi_{C'}(t) p_{C' \to C} math code yields: math \pi_C(t+1)=\sum_{C'} \pi_{C'}(t) p_{C' \to C} math

Questions and Remarks:
> > Thanks; to get help on a function, you can either use the python command line, //e.g.// code format="python" help(random.randint) help(numpy.random.randint) code > or use the online reference pages, //e.g.// @http://docs.python.org/2/library/random.html.
 * **Remark:** Attention on the difference between random.randint(a,b): random integer including b and numpy.random.randint(a,b) random integer excluding b. I imported random accidentally from numpy and then all the codes give strange results. **//by Maximilian Trescher//**

> Thank you! The two lines of question 3 should indeed be replaced by: k = (k + random.randint(0,1)*2 -1)%L user:mhkoepf
 * **Minor remark.** I think that question 4 of "Model 1 - Markov Chain MC" is not written correctly. If you replace the two lines of question 3 with the code proposed in question 4, you are not updating k. Either you only replace the first line, or you add another line (k=l), or you just use k and do not introduce l. user:tommaso.comparin