genConfig1D_R: Generate one dimensional spin sites randomly

Description Usage Arguments Value Author(s) Examples

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 is pure R implementation.

Usage

1

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

1
2
  n <- 10 # 10 spin sites
  genConfig1D_R(n)


Search within the isingLenzMC package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.