Description Usage Arguments Details Value Author(s) See Also Examples
smr_array
creates a vector containing only the free parameters from an array
given a restriction family
. exapand_array
is the reverse
operation, expanding a complete array from the vector of sufficient statistics.
1 2 3 
theta 
A 3dimensional array describing potentials. Slices represent
interacting positions, rows represent pixel values and columns represent
neighbor values. As an example: 
family 
The family of parameter restrictions to potentials. Families
are:

theta_vec 
A 
mrfi 
A 
C 
The maximum value of the field. 
The order the parameters appear in the summarized vector matches
the order in smr_stat()
.
smr_array
returns a numeric vector with the free parameters of theta
.
expand_array
returns a threedimensional array
of potentials.
Victor Freguglia
A paper with detailed description of the package can be found at https://arxiv.org/abs/2006.00383
1 2 3 4 5  smr_array(theta_potts, "onepar")
smr_array(theta_potts, "oneeach")
expand_array(0.99, family = "onepar", mrfi = mrfi(1), C = 2)
expand_array(c(0.1, 0.2), family = "oneeach", mrfi = mrfi(1), C = 3)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.