{
  "_id": "6a18dff6acfb0bcc41dcc912",
  "Package": "mrf2d",
  "Type": "Package",
  "Title": "Markov Random Field Models for Image Analysis",
  "Version": "1.0.2",
  "Authors@R": "person(\"Victor\", \"Freguglia\", email = \"victorfreguglia@gmail.com\",\nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-6189-4453\"))",
  "Maintainer": "Victor Freguglia <victorfreguglia@gmail.com>",
  "Description": "Model fitting, sampling and visualization for the (Hidden)\nMarkov Random Field model with pairwise interactions and\ngeneral interaction structure from Freguglia, Garcia & Bicas\n(2020) <doi:10.1002/env.2613>, which has many popular models\nused in 2-dimensional lattices as particular cases, like the\nIsing Model and Potts Model. A complete manuscript describing\nthe package is available in Freguglia & Garcia (2022)\n<doi:10.18637/jss.v101.i08>.",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RdMacros": "Rdpack",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "URL": "https://github.com/Freguglia/mrf2d",
  "BugReports": "https://github.com/Freguglia/mrf2d/issues",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://freguglia.r-universe.dev",
  "Date/Publication": "2026-05-28 23:51:46 UTC",
  "RemoteUrl": "https://github.com/freguglia/mrf2d",
  "RemoteRef": "HEAD",
  "RemoteSha": "97b3676741057bcab91d20cbf52742e0af095504",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-29 00:32:05 UTC",
    "User": "root"
  },
  "Author": "Victor Freguglia [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-6189-4453>)",
  "MD5sum": "4966dac96c554b99eaf15fd5ef44cd5f",
  "_user": "freguglia",
  "_type": "src",
  "_file": "mrf2d_1.0.2.tar.gz",
  "_fileid": "1ec0faaa1af09f5332a5d52f147a19db337482a9310ae0c7a635347c831b951a",
  "_filesize": 1397752,
  "_sha256": "1ec0faaa1af09f5332a5d52f147a19db337482a9310ae0c7a635347c831b951a",
  "_created": "2026-05-29T00:32:05.000Z",
  "_published": "2026-05-29T00:38:14.710Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78415566521,
      "time": 238,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7280569820"
    },
    {
      "job": 78415566528,
      "time": 205,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7280563103"
    },
    {
      "job": 78415566621,
      "time": 228,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7280567809"
    },
    {
      "job": 78415566530,
      "time": 217,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7280565362"
    },
    {
      "job": 78415566526,
      "time": 164,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7280550602"
    },
    {
      "job": 78415566514,
      "time": 311,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7280580868"
    },
    {
      "job": 78415566536,
      "time": 159,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7280548384"
    },
    {
      "job": 78415566531,
      "time": 290,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7280576588"
    },
    {
      "job": 78415082235,
      "time": 264,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7280520095"
    },
    {
      "job": 78415566507,
      "time": 128,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7280546997"
    },
    {
      "job": 78415566511,
      "time": 212,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7280564655"
    },
    {
      "job": 78415566500,
      "time": 154,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7280552255"
    },
    {
      "job": 78415566512,
      "time": 186,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7280558942"
    }
  ],
  "_buildurl": "https://github.com/r-universe/freguglia/actions/runs/26610484857",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/freguglia/mrf2d",
  "_commit": {
    "id": "97b3676741057bcab91d20cbf52742e0af095504",
    "author": "Victor Freguglia <victorfreguglia@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #18 from Freguglia/pl-performance\n\nImproves Pseudolikelihood computation performance",
    "time": 1780012306
  },
  "_maintainer": {
    "name": "Victor Freguglia",
    "email": "victorfreguglia@gmail.com",
    "login": "freguglia",
    "linkedin": "in/victor-freguglia-aa0335160",
    "description": "Assistant Professor - Department of Statistics - University of Campinas.",
    "uuid": 26393042,
    "orcid": "0000-0002-6189-4453"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.1",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "version": ">= 0.8.1",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "Rdpack",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 2.1.0",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "glue",
      "role": "Suggests"
    }
  ],
  "_owner": "freguglia",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-22",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "gibbs-energy",
    "hidden-markov-model",
    "hidden-markov-models",
    "markov-random-field",
    "mrf",
    "mrf-models",
    "neighborhood",
    "cpp",
    "openmp"
  ],
  "_stars": 10,
  "_contributors": [
    {
      "user": "freguglia",
      "count": 381,
      "uuid": 26393042
    }
  ],
  "_userbio": {
    "uuid": 26393042,
    "type": "user",
    "name": "Victor Freguglia",
    "description": "Assistant Professor - Department of Statistics - University of Campinas."
  },
  "_downloads": {
    "count": 204,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/mrf2d"
  },
  "_devurl": "https://github.com/freguglia/mrf2d",
  "_searchresults": 10,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/mrf2d.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/freguglia/mrf2d",
  "_realowner": "freguglia",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2020-02-21"
    },
    {
      "version": "0.2.0",
      "date": "2020-02-21"
    },
    {
      "version": "0.3",
      "date": "2020-06-03"
    },
    {
      "version": "0.4.0",
      "date": "2020-06-30"
    },
    {
      "version": "0.4.1",
      "date": "2020-10-20"
    },
    {
      "version": "0.5",
      "date": "2020-10-29"
    },
    {
      "version": "1.0",
      "date": "2022-01-26"
    }
  ],
  "_exports": [
    "cohist",
    "cp_mrf2d",
    "cplot",
    "dplot",
    "expand_array",
    "fit_ghm",
    "fit_pl",
    "fit_sa",
    "fourier_2d",
    "mrfi",
    "mrfi_to_string",
    "pl_mrf2d",
    "polynomial_2d",
    "rmrf2d",
    "rmrf2d_mc",
    "rpositions",
    "smr_array",
    "smr_stat",
    "vec_description"
  ],
  "_datasets": [
    {
      "name": "bold5000",
      "title": "BOLD5000 neuroimaging data",
      "object": "bold5000",
      "class": [
        "matrix",
        "array"
      ],
      "fields": {},
      "rows": 176,
      "table": true,
      "tojson": true
    },
    {
      "name": "field1",
      "title": "Example Data",
      "object": "field1",
      "class": [
        "matrix",
        "array"
      ],
      "fields": {},
      "rows": 150,
      "table": true,
      "tojson": true
    },
    {
      "name": "hfield1",
      "title": "Example Data",
      "object": "hfield1",
      "class": [
        "matrix",
        "array"
      ],
      "fields": {},
      "rows": 150,
      "table": true,
      "tojson": true
    },
    {
      "name": "theta_potts",
      "title": "Example objects from 'mrf2d'",
      "object": "theta_potts",
      "class": [
        "array"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "Z_potts",
      "title": "Example objects from 'mrf2d'",
      "object": "Z_potts",
      "class": [
        "matrix",
        "array"
      ],
      "fields": {},
      "rows": 150,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "basis_functions",
      "title": "Creation of basis functions",
      "topics": [
        "basis_functions",
        "fourier_2d",
        "polynomial_2d"
      ]
    },
    {
      "page": "bold5000",
      "title": "BOLD5000 neuroimaging data",
      "topics": [
        "bold5000"
      ]
    },
    {
      "page": "cpmrf2d",
      "title": "Conditional probabilities in a pixel position",
      "topics": [
        "cpmrf2d",
        "cp_mrf2d"
      ]
    },
    {
      "page": "data_examples",
      "title": "Example Data",
      "topics": [
        "data_examples",
        "field1",
        "hfield1"
      ]
    },
    {
      "page": "dplot",
      "title": "Plotting functions for lattice data",
      "topics": [
        "cplot",
        "dplot"
      ]
    },
    {
      "page": "fit_ghm",
      "title": "EM estimation for Gaussian Hidden Markov field",
      "topics": [
        "fit_ghm"
      ]
    },
    {
      "page": "fit_pl",
      "title": "Maximum Pseudo-likelihood fitting of MRFs on 2d lattices.",
      "topics": [
        "fit_pl"
      ]
    },
    {
      "page": "fit_sa",
      "title": "Stochastic Approximation fitting of MRFs on 2d lattices",
      "topics": [
        "fit_sa"
      ]
    },
    {
      "page": "hmrfout",
      "title": "MRF fitting functions output",
      "topics": [
        "hmrfout",
        "plot.hmrfout",
        "print.hmrfout",
        "summary.hmrfout"
      ]
    },
    {
      "page": "mrf2d-family",
      "title": "Parameter restriction families",
      "topics": [
        "mrf2d-family"
      ]
    },
    {
      "page": "mrfi-class",
      "title": "mrfi: MRF interaction structure",
      "topics": [
        "+,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"
      ]
    },
    {
      "page": "mrfout",
      "title": "MRF fitting functions output",
      "topics": [
        "mrfout",
        "plot.mrfout",
        "print.mrfout",
        "summary.mrfout"
      ]
    },
    {
      "page": "pl_mrf2d",
      "title": "Pseudo-likelihood function for MRFs on 2d lattices",
      "topics": [
        "pl_mrf2d"
      ]
    },
    {
      "page": "plot.mrfi",
      "title": "Plotting of 'mrfi' objects.",
      "topics": [
        "mrfi-plot",
        "plot.mrfi"
      ]
    },
    {
      "page": "rmrf2d",
      "title": "Sampling of Markov Random Fields on 2d lattices",
      "topics": [
        "rmrf2d"
      ]
    },
    {
      "page": "rmrf2d_mc",
      "title": "Markov Chain sampling of MRFs for Monte-Carlo methods",
      "topics": [
        "rmrf2d_mc"
      ]
    },
    {
      "page": "smr_array",
      "title": "Summarized representation of theta arrays",
      "topics": [
        "expand_array",
        "smr_array"
      ]
    },
    {
      "page": "smr_stat",
      "title": "Summary Statistics",
      "topics": [
        "cohist",
        "smr_stat",
        "vec_description"
      ]
    },
    {
      "page": "Z_potts",
      "title": "Example objects from 'mrf2d'",
      "topics": [
        "theta_potts",
        "Z_potts"
      ]
    }
  ],
  "_pkglogo": "https://github.com/freguglia/mrf2d/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/freguglia/mrf2d/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "Rdpack",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    },
    {
      "shlib": "libgomp",
      "package": "libgomp1",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "openmp",
      "homepage": "http://gcc.gnu.org/",
      "description": "GCC OpenMP (GOMP) support library"
    }
  ],
  "_vignettes": [
    {
      "source": "mrf2d-family.Rmd",
      "filename": "mrf2d-family.html",
      "title": "Parameter restriction families in mrf2d",
      "engine": "knitr::rmarkdown",
      "headings": [
        "'onepar'",
        "Example",
        "'oneeach'",
        "'absdif'",
        "'dif'",
        "'free'"
      ],
      "created": "2020-04-30 00:45:58",
      "modified": "2020-06-02 17:57:45",
      "commits": 3
    },
    {
      "source": "three-dimensions-on-mrf2d.Rmd",
      "filename": "three-dimensions-on-mrf2d.html",
      "title": "Working with 3d lattices in mrf2d",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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"
      ],
      "created": "2020-10-27 20:35:59",
      "modified": "2020-10-29 18:23:13",
      "commits": 2
    }
  ],
  "_score": 5,
  "_indexed": true,
  "_nocasepkg": "mrf2d",
  "_universes": [
    "freguglia"
  ],
  "_previous": "1.0.1",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.2",
      "date": "2026-05-29T00:35:35.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "97b3676741057bcab91d20cbf52742e0af095504",
      "fileid": "192da436649e487330ef887935add5bfc47e010cab8dbfbf97b1a83788590454",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/26610484857"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.2",
      "date": "2026-05-29T00:35:03.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "97b3676741057bcab91d20cbf52742e0af095504",
      "fileid": "765d40fe09f3c877b488e577b895303cfe82de1681dfdd80e20e6e364edf5612",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/26610484857"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.2",
      "date": "2026-05-29T00:35:26.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "97b3676741057bcab91d20cbf52742e0af095504",
      "fileid": "3d2630059db1babc95ea410aa1e2de2eadda45636249fa9e31073285a9740aba",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/26610484857"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.2",
      "date": "2026-05-29T00:35:12.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "97b3676741057bcab91d20cbf52742e0af095504",
      "fileid": "4f012f44d471080e678a76782871153e04d55cf84df0de66168bb10933c7433d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/26610484857"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.2",
      "date": "2026-05-29T00:34:33.000Z",
      "arch": "aarch64",
      "commit": "97b3676741057bcab91d20cbf52742e0af095504",
      "fileid": "e423be927e16d32b0437516a41a763d453092a0f3bf9ec2eae977235bab5aa98",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/26610484857"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.2",
      "date": "2026-05-29T00:36:09.000Z",
      "arch": "x86_64",
      "commit": "97b3676741057bcab91d20cbf52742e0af095504",
      "fileid": "d25699ea5021a28643a804db034bfcf664d980db911246ad9208572e095d0299",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/26610484857"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.2",
      "date": "2026-05-29T00:34:22.000Z",
      "arch": "aarch64",
      "commit": "97b3676741057bcab91d20cbf52742e0af095504",
      "fileid": "bbf3e8a4ca257225137cfb25763efab0dbb5ce0495d7dc7d0179046ad7140e28",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/26610484857"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.2",
      "date": "2026-05-29T00:35:44.000Z",
      "arch": "x86_64",
      "commit": "97b3676741057bcab91d20cbf52742e0af095504",
      "fileid": "bd5ed10f16892e5f41de07c4c002a1c5473f1a920340fb8641162b76b6d6fd28",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/26610484857"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.2",
      "date": "2026-05-29T00:34:46.000Z",
      "arch": "emscripten",
      "commit": "97b3676741057bcab91d20cbf52742e0af095504",
      "fileid": "7057fb08fa535fa1bb6fec9cf0765484eb7d395e6732a951c9bcea62f76fcf49",
      "status": "success",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/26610484857"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.2",
      "date": "2026-05-29T00:34:43.000Z",
      "arch": "x86_64",
      "commit": "97b3676741057bcab91d20cbf52742e0af095504",
      "fileid": "9b1882081e814a7365888ee92d80fc983f74cb3cb7fd7d077efc18dc18514916",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/26610484857"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.2",
      "date": "2026-05-29T00:33:44.000Z",
      "arch": "x86_64",
      "commit": "97b3676741057bcab91d20cbf52742e0af095504",
      "fileid": "e558395fed33210f2738b5b1df422fb2b5edc75c5029a0ee069a0efbe5d19ca8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/26610484857"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.2",
      "date": "2026-05-29T00:34:02.000Z",
      "arch": "x86_64",
      "commit": "97b3676741057bcab91d20cbf52742e0af095504",
      "fileid": "32d3b0761b8dd420f5f30fd703573a742bf770c0ec303f812f346e1a76e2d61e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/26610484857"
    }
  ]
}