Description Usage Arguments Value Author(s) See Also Examples

Computes the vector of conditional probabilities for a pixel position given a field, an interaction structure and a parameter array.

1 |

`Z` |
A |

`mrfi` |
A |

`theta` |
A 3-dimensional array describing potentials. Slices represent
interacting positions, rows represent pixel values and columns represent
neighbor values. As an example: |

`pos` |
Length-2 vector with the position to compute conditional probabilities in. |

A `numeric`

vector with the conditional probabilities.

Victor Freguglia

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

1 2 | ```
cp_mrf2d(Z_potts, mrfi(1), theta_potts, c(57,31))
cp_mrf2d(Z_potts, mrfi(1), theta_potts*0.1, c(57,31))
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.