genConfig1D {isingLenzMC} | R Documentation |
Generate one dimensional spin sites randomly
Description
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 calls 'genConfig1D' C function.
Usage
genConfig1D(n)
Arguments
n |
The number of spin sites on the lattice. |
Value
Returns vector that contains 1s or -1s.
Author(s)
Mehmet Suzen <mehmet.suzen@physics.org>
Examples
n <- 10 # 10 spin sites
genConfig1D(n)
[Package isingLenzMC version 0.2.5 Index]