powered by
Computes the summary count statistics of a field given an interaction structure and a restriction family.
smr_stat(Z, mrfi, family)
A matrix object containing the observed MRF. NA values can be used to create a subregion of the lattice for non-rectangular data.
matrix
NA
A mrfi object representing the interaction structure.
mrfi
The family of parameter restrictions to potentials. Families are: 'onepar', 'oneeach', 'absdif', 'dif' or 'free'. See mrf2d-familiy.
'onepar'
'oneeach'
'absdif'
'dif'
'free'
mrf2d-familiy
A numeric vector with the summarized counts.
The order the summarized counts appear in the summary vector matches the order in smr_array().
smr_array()
# NOT RUN { smr_stat(Z_potts, mrfi(1), "onepar") smr_stat(Z_potts, mrfi(1), "oneeach") # }
Run the code above in your browser using DataLab