Computes the vector of conditional probabilities for a pixel position given a field, an interaction structure and a parameter array.
cp_mrf2d(Z, mrfi, theta, pos)A matrix with integers in {0,...,C}.
A mrfi object representing the
interaction structure.
A 3-dimensional array describing potentials. Slices represent
interacting positions, rows represent pixel values and columns represent
neighbor values. As an example: theta[1,3,2] has the potential for the
pair of values 0,2 observed in the second relative position of mrfi.
Length-2 vector with the position to compute conditional probabilities in.
A numeric vector with the conditional probabilities.
A paper with detailed description of the package can be found at doi: 10.18637/jss.v101.i08 .