Package: mrf2d 1.0.2

mrf2d: Markov Random Field Models for Image Analysis

Model fitting, sampling and visualization for the (Hidden) Markov Random Field model with pairwise interactions and general interaction structure from Freguglia, Garcia & Bicas (2020) <doi:10.1002/env.2613>, which has many popular models used in 2-dimensional lattices as particular cases, like the Ising Model and Potts Model. A complete manuscript describing the package is available in Freguglia & Garcia (2022) <doi:10.18637/jss.v101.i08>.

Authors:Victor Freguglia [aut, cre]

mrf2d_1.0.2.tar.gz
mrf2d_1.0.2.zip(r-4.7)mrf2d_1.0.2.zip(r-4.6)mrf2d_1.0.2.zip(r-4.5)
mrf2d_1.0.2.tgz(r-4.6-x86_64)mrf2d_1.0.2.tgz(r-4.6-arm64)mrf2d_1.0.2.tgz(r-4.5-x86_64)mrf2d_1.0.2.tgz(r-4.5-arm64)
mrf2d_1.0.2.tar.gz(r-4.7-arm64)mrf2d_1.0.2.tar.gz(r-4.7-x86_64)mrf2d_1.0.2.tar.gz(r-4.6-arm64)mrf2d_1.0.2.tar.gz(r-4.6-x86_64)
mrf2d_1.0.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
mrf2d/json (API)

# Install 'mrf2d' in R:
install.packages('mrf2d', repos = c('https://freguglia.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/freguglia/mrf2d/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library
Datasets:

On CRAN:

Conda:

gibbs-energyhidden-markov-modelhidden-markov-modelsmarkov-random-fieldmrfmrf-modelsneighborhoodcppopenmp

5.20 score 10 stars 16 scripts 359 downloads 19 exports 33 dependencies

Last updated from:97b3676741. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK186
linux-devel-x86_64OK190
source / vignettesOK249
linux-release-arm64OK184
linux-release-x86_64OK199
macos-release-arm64OK155
macos-release-x86_64OK284
macos-oldrel-arm64OK111
macos-oldrel-x86_64OK344
windows-develOK164
windows-releaseOK171
windows-oldrelOK171
wasm-releaseOK175

Exports:cohistcp_mrf2dcplotdplotexpand_arrayfit_ghmfit_plfit_safourier_2dmrfimrfi_to_stringpl_mrf2dpolynomial_2drmrf2drmrf2d_mcrpositionssmr_arraysmr_statvec_description

Dependencies:clicpp11dplyrfarvergenericsggplot2gluegtableisobandlabelinglifecyclemagrittrpillarpkgconfigpurrrR6rbibutilsRColorBrewerRcppRcppArmadilloRdpackrlangS7scalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr

Working with 3d lattices in mrf2d
Introduction | Reshaping 3-dimensional problems to mrf2d | Reshaping random fields | Reshaping interactions (mrfi objects) | mrf2d methods with reshaped data | Random sampling | Parameter estimation | Hidden MRFs | Caveats of 2d projections

Last update: 2020-10-29
Started: 2020-10-27

Parameter restriction families in mrf2d
'onepar' | Example | 'oneeach' | 'absdif' | 'dif' | 'free'

Last update: 2020-06-02
Started: 2020-04-30

Readme and manuals

Help Manual

Help pageTopics
Creation of basis functionsbasis_functions fourier_2d polynomial_2d
BOLD5000 neuroimaging databold5000
Conditional probabilities in a pixel positioncpmrf2d cp_mrf2d
Example Datadata_examples field1 hfield1
Plotting functions for lattice datacplot dplot
EM estimation for Gaussian Hidden Markov fieldfit_ghm
Maximum Pseudo-likelihood fitting of MRFs on 2d lattices.fit_pl
Stochastic Approximation fitting of MRFs on 2d latticesfit_sa
MRF fitting functions outputhmrfout plot.hmrfout print.hmrfout summary.hmrfout
Parameter restriction familiesmrf2d-family
mrfi: MRF interaction structure+,mrfi,mrfi-method +,mrfi,numeric-method -,mrfi,mrfi-method -,mrfi,numeric-method as.list.mrfi length,mrfi-method mrfi mrfi-class mrfi_to_string rpositions [,mrfi,numeric,missing-method [[,mrfi,numeric,missing-method
MRF fitting functions outputmrfout plot.mrfout print.mrfout summary.mrfout
Pseudo-likelihood function for MRFs on 2d latticespl_mrf2d
Plotting of 'mrfi' objects.mrfi-plot plot.mrfi
Sampling of Markov Random Fields on 2d latticesrmrf2d
Markov Chain sampling of MRFs for Monte-Carlo methodsrmrf2d_mc
Summarized representation of theta arraysexpand_array smr_array
Summary Statisticscohist smr_stat vec_description
Example objects from 'mrf2d'theta_potts Z_potts