Description Usage Arguments Value Author(s) Examples
The function uses default RNG (Marsienne-Twister) unless changed by the user, within R, to generate a vector that contains 1 or -1. This reflects spin sites. This function is pure R implementation.
1 |
n |
The number of spin sites on the lattice. |
Returns vector that contains 1s or -1s.
Mehmet Suzen <mehmet.suzen@physics.org>
1 2 | n <- 10 # 10 spin sites
genConfig1D_R(n)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.