# PottsUtils v0.3-3

0

Monthly downloads

## 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

## Last month downloads

## Details

License | GPL-2 |

NeedsCompilation | yes |

Packaged | 2018-02-18 20:53:32 UTC; dai |

Repository | CRAN |

Date/Publication | 2018-02-18 21:04:47 UTC |

imports | miscF (>= 0.1-4) |

depends | R (>= 3.0.2) |

Contributors | Dai Feng, Luke Tierney |

#### Include our badge in your README

```
[![Rdoc](http://www.rdocumentation.org/badges/version/PottsUtils)](http://www.rdocumentation.org/packages/PottsUtils)
```