# sufficientStat

From bayesImageS v0.4-0
by Matt Moores

##### Calculate the sufficient statistic of the Potts model for the given labels.

Calculate the sufficient statistic of the Potts model for the given labels.

##### Usage

`sufficientStat(labels, neighbors, blocks, k)`

##### Arguments

- labels
A matrix of pixel labels.

- neighbors
A matrix of all neighbors in the lattice, one row per pixel.

- blocks
A list of pixel indices, dividing the lattice into independent blocks.

- k
The number of unique labels.

##### Value

The sum of like neighbors.

*Documentation reproduced from package bayesImageS, version 0.4-0, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.