Package: mrf2d 1.0.1

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.1.tar.gz
mrf2d_1.0.1.zip(r-4.5)mrf2d_1.0.1.zip(r-4.4)mrf2d_1.0.1.zip(r-4.3)
mrf2d_1.0.1.tgz(r-4.4-x86_64)mrf2d_1.0.1.tgz(r-4.4-arm64)mrf2d_1.0.1.tgz(r-4.3-x86_64)mrf2d_1.0.1.tgz(r-4.3-arm64)
mrf2d_1.0.1.tar.gz(r-4.5-noble)mrf2d_1.0.1.tar.gz(r-4.4-noble)
mrf2d_1.0.1.tgz(r-4.4-emscripten)mrf2d_1.0.1.tgz(r-4.3-emscripten)
mrf2d.pdf |mrf2d.html
mrf2d/json (API)
NEWS

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

Peer review:

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

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

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

19 exports 9 stars 1.41 score 40 dependencies 10 scripts 343 downloads

Last updated 2 years agofrom:89fa8c4c16. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 08 2024
R-4.5-win-x86_64OKSep 08 2024
R-4.5-linux-x86_64OKSep 08 2024
R-4.4-win-x86_64OKSep 08 2024
R-4.4-mac-x86_64OKSep 08 2024
R-4.4-mac-aarch64OKSep 08 2024
R-4.3-win-x86_64OKSep 08 2024
R-4.3-mac-x86_64OKSep 08 2024
R-4.3-mac-aarch64OKSep 08 2024

Exports:cohistcp_mrf2dcplotdplotexpand_arrayfit_ghmfit_plfit_safourier_2dmrfimrfi_to_stringpl_mrf2dpolynomial_2drmrf2drmrf2d_mcrpositionssmr_arraysmr_statvec_description

Dependencies:clicolorspacecpp11dplyrfansifarvergenericsggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigpurrrR6rbibutilsRColorBrewerRcppRcppArmadilloRdpackrlangscalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr

Parameter restriction families in mrf2d

Rendered frommrf2d-family.Rmdusingknitr::rmarkdownon Sep 08 2024.

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

Working with 3d lattices in mrf2d

Rendered fromthree-dimensions-on-mrf2d.Rmdusingknitr::rmarkdownon Sep 08 2024.

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

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