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.
The number of spin sites on the lattice.
Returns vector that contains 1s or -1s.
Mehmet Suzen <firstname.lastname@example.org>
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.