Learn R Programming

PottsUtils (version 0.3-3)

Utility Functions of the Potts Models

Description

There are three sets of functions. The first produces basic properties of a graph and generates samples from multinomial distributions to facilitate the simulation functions (they maybe used for other purposes as well). The second provides various simulation functions for a Potts model in Potts, R. B. (1952) . The third currently includes only one function which computes the normalizing constant of a Potts model based on simulation results.

Copy Link

Version

Install

install.packages('PottsUtils')

Monthly Downloads

513

Version

0.3-3

License

GPL-2

Maintainer

Last Published

February 18th, 2018

Functions in PottsUtils (0.3-3)

rPotts1

Generate One Random Sample from a Potts Model
getNC

Calculate the Normalizing Constant of a Simple Potts Model
getNeighbors

Get Neighbors of All Vertices of a Graph
BlocksGibbs

Generate Random Samples from a Potts Model Using the Checkerboard Idea
SW

Generate Random Samples from a Compound Potts Model by the Swendsen-Wang Algorithm
getPatches

Get Patches of a Graph
getWeights

Get All Weights of a Graph
getEdges

Get Edges of a Graph
getConfs

Generate Configurations of a Graph
Wolff

Generate Random Samples from a Compound Potts Model by the Wolff Algorithm
getBlocks

Get Blocks of a Graph