Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/pseudo_likelihood.R

Computes the pseudo-likelihood function of a Markov Random Field on a 2-dimensional lattice.

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: |

`log_scale` |
A |

The pseudo-likelihood function is defined as the product of conditional probabilities of each pixel given its neighbors:

*∏_i P(Z_i | Z_{{N}_i}, θ).*

A `numeric`

with the pseudo-likelihood value.

Victor Freguglia

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

1 | ```
pl_mrf2d(Z_potts, mrfi(1), theta_potts)
``` |

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.