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 <mehmet.suzen@physics.org>

Examples

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

isingLenzMC documentation built on May 20, 2017, 3:23 a.m.

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