smr_array | R Documentation |
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.
smr_array(theta, family) expand_array(theta_vec, family, mrfi, C)
theta |
A 3-dimensional 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()
.
vec_description()
provides a data.frame
object describing
which are the relative positions and interactions associated with each
element of the summarized vector in the same order.
smr_array
returns a numeric vector with the free parameters of theta
.
expand_array
returns a three-dimensional array
of potentials.
Victor Freguglia
A paper with detailed description of the package can be found at doi: 10.18637/jss.v101.i08
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.