genConfig1D_R: Generate one dimensional spin sites randomly

Description Usage Arguments Value Author(s) Examples

View source: R/isingLibR.R

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 <[email protected]>

Examples

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

isingLenzMC documentation built on May 30, 2017, 5:36 a.m.