smr_stat: Summary Statistics

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/suf_stat.R

Description

Computes the summary count statistics of a field given an interaction structure and a restriction family.

Usage

1
2
3

Arguments

Z

A matrix object containing the observed MRF. NA values can be used to create a subregion of the lattice for non-rectangular data.

mrfi

A mrfi object representing the interaction structure.

family

The family of parameter restrictions to potentials. Families are: 'onepar', 'oneeach', 'absdif', 'dif' or 'free'. See mrf2d-familiy.

Details

The order the summarized counts appear in the summary vector matches the order in smr_array().

Value

A numeric vector with the summarized counts.

An array representing the co-ocurrence histogram of Z in the relative positions contained in mrfi. Each row and column corresponds a pair of values in (0, ..., C) and each slice corresponds to

Author(s)

Victor Freguglia

See Also

A paper with detailed description of the package can be found at https://arxiv.org/abs/2006.00383

Examples

1
2
3
4
smr_stat(Z_potts, mrfi(1), "onepar")
smr_stat(Z_potts, mrfi(1), "oneeach")

cohist(Z_potts, mrfi(1))

mrf2d documentation built on Oct. 30, 2020, 1:07 a.m.