# PottsUtils v0.3-3

0

0th

Percentile

## Utility Functions of the Potts Models

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) <doi:10.1017/S0305004100027419>. The third currently includes only one function which computes the normalizing constant of a Potts model based on simulation results.

## Functions in PottsUtils

 Name Description 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 No Results!

## Vignettes of PottsUtils

 Name figures/18neighbors.png figures/26neighbors.png figures/6neighbors.png figures/Graph-patches.png figures/Independent2D.png figures/Independent2D2.png figures/Independent3D.png figures/Independent3D2.png figures/Patches.png figures/SW.png figures/Wolff.png figures/chessboard-3d-2.png figures/chessboard.png figures/neighbors1D.png figures/neighbors2D.png figures/neighbors3D.png Intro.Rnw Intro.bib No Results!