{
  "_id": "6a5db9b29baadeef8ab53cdf",
  "Package": "AcceptReject",
  "Title": "Acceptance-Rejection Method for Generating Pseudo-Random\nObservations",
  "Version": "0.1.2",
  "Authors@R": "c(\nperson(\"Pedro Rafael D.\", \"Marinho\", , \"pedro.rafael.marinho@gmail.com\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0003-1591-8300\")),\nperson(\"Vera Lucia Damasceno\", \"Tomazella\", , \"vera@ufscar.br\", role = c(\"ctb\"),\ncomment = c(ORCID = \"0000-0002-6780-2089\"))\n)",
  "Description": "Provides a function that implements the\nacceptance-rejection method in an optimized manner to generate\npseudo-random observations for discrete or continuous random\nvariables. Proposed by von Neumann J. (1951),\n<https://mcnp.lanl.gov/pdf_files/>, the function is optimized\nto work in parallel on Unix-based operating systems and\nperforms well on Windows systems. The acceptance-rejection\nmethod implemented optimizes the probability of generating\nobservations from the desired random variable, by simply\nproviding the probability function or probability density\nfunction, in the discrete and continuous cases, respectively.\nImplementation is based on references CASELLA, George at al.\n(2004) <https://www.jstor.org/stable/4356322>, NEAL, Radford M.\n(2003) <https://www.jstor.org/stable/3448413> and Bishop,\nChristopher M. (2006, ISBN: 978-0387310732).",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "URL": "https://prdm0.github.io/AcceptReject/",
  "BugReports": "https://github.com/prdm0/AcceptReject/issues/",
  "RoxygenNote": "7.3.1",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Repository": "https://prdm0.r-universe.dev",
  "Date/Publication": "2024-05-22 16:00:52 UTC",
  "RemoteUrl": "https://github.com/prdm0/AcceptReject",
  "RemoteRef": "HEAD",
  "RemoteSha": "469f88f6b0655b00cba660acc50e1402765d46e6",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-07-20 05:56:00 UTC",
    "User": "root"
  },
  "Author": "Pedro Rafael D. Marinho [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-1591-8300>),\nVera Lucia Damasceno Tomazella [ctb] (ORCID:\n<https://orcid.org/0000-0002-6780-2089>)",
  "Maintainer": "Pedro Rafael D. Marinho <pedro.rafael.marinho@gmail.com>",
  "_user": "prdm0",
  "_type": "src",
  "_file": "AcceptReject_0.1.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/a6282759e90b9475a4e0179b30bd91b9214c4e62e5b7a6ae3f6e9e5dd3164957",
  "_filesize": 15976310,
  "_sha256": "a6282759e90b9475a4e0179b30bd91b9214c4e62e5b7a6ae3f6e9e5dd3164957",
  "_expires": "2026-10-28T06:01:19.000Z",
  "_created": "2026-07-20T05:56:00.000Z",
  "_published": "2026-07-20T06:01:21.827Z",
  "_jobs": [
    {
      "job": 88281825823,
      "time": 154,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8452145565"
    },
    {
      "job": 88281825831,
      "time": 162,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8452146616"
    },
    {
      "job": 88281825815,
      "time": 153,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8452145417"
    },
    {
      "job": 88281825846,
      "time": 165,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8452147199"
    },
    {
      "job": 88281825817,
      "time": 83,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8452128054"
    },
    {
      "job": 88281825811,
      "time": 245,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8452166532"
    },
    {
      "job": 88281825825,
      "time": 92,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8452129912"
    },
    {
      "job": 88281825799,
      "time": 207,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8452157526"
    },
    {
      "job": 88281417250,
      "time": 210,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8452106782"
    },
    {
      "job": 88281825732,
      "time": 138,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8452140802"
    },
    {
      "job": 88281825802,
      "time": 117,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8452136047"
    },
    {
      "job": 88281825775,
      "time": 141,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8452142051"
    },
    {
      "job": 88281825798,
      "time": 125,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8452137820"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/prdm0/actions/runs/29720153635",
  "_status": "success",
  "_upstream": "https://github.com/prdm0/AcceptReject",
  "_commit": {
    "id": "469f88f6b0655b00cba660acc50e1402765d46e6",
    "author": "prdm0 <pedro.rafael.marinho@gmail.com>",
    "committer": "prdm0 <pedro.rafael.marinho@gmail.com>",
    "message": "Update vignette\n",
    "time": 1716393652
  },
  "_maintainer": {
    "name": "Pedro Rafael D. Marinho",
    "email": "pedro.rafael.marinho@gmail.com",
    "login": "prdm0",
    "orcid": "0000-0003-1591-8300",
    "description": "PhD in Statistics and R/Python Language Enthusiast",
    "uuid": 4948384
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "assertthat",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "numDeriv",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "scattermore",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "cowplot",
      "role": "Suggests"
    },
    {
      "package": "tictoc",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "prdm0",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_topics": [
    "monte-carlo",
    "monte-carlo-simulation",
    "rejection-sampling",
    "statistics-library",
    "cpp"
  ],
  "_stars": 2,
  "_contributors": [
    {
      "user": "prdm0",
      "count": 68,
      "uuid": 4948384
    }
  ],
  "_userbio": {
    "uuid": 4948384,
    "type": "user",
    "name": "Pedro Rafael",
    "followers": 120,
    "description": "PhD in Statistics and R/Python Language Enthusiast"
  },
  "_downloads": {
    "count": 497,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/AcceptReject"
  },
  "_devurl": "https://github.com/prdm0/acceptreject",
  "_pkgdown": "https://prdm0.github.io/AcceptReject/",
  "_searchresults": 11,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/AcceptReject.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/prdm0/acceptreject",
  "_realowner": "prdm0",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2024-04-11"
    },
    {
      "version": "0.1.1",
      "date": "2024-04-24"
    },
    {
      "version": "0.1.2",
      "date": "2024-05-07"
    }
  ],
  "_exports": [
    "accept_reject",
    "inspect",
    "qqplot"
  ],
  "_help": [
    {
      "page": "accept_reject",
      "title": "Acceptance-Rejection Method",
      "topics": [
        "accept_reject"
      ]
    },
    {
      "page": "inspect",
      "title": "Inspecting the theoretical density with the base density",
      "topics": [
        "inspect"
      ]
    },
    {
      "page": "plot.accept_reject",
      "title": "Plot Accept-Reject",
      "topics": [
        "plot.accept_reject"
      ]
    },
    {
      "page": "print.accept_reject",
      "title": "Print method for accept_reject objects",
      "topics": [
        "print.accept_reject"
      ]
    },
    {
      "page": "qqplot",
      "title": "QQ-Plot QQ-Plot between observed quantiles and theoretical quantiles.",
      "topics": [
        "qqplot"
      ]
    },
    {
      "page": "qqplot.accept_reject",
      "title": "QQ-Plot Plot the QQ-Plot between observed quantiles and theoretical quantiles.",
      "topics": [
        "qqplot.accept_reject"
      ]
    }
  ],
  "_pkglogo": "https://github.com/prdm0/AcceptReject/raw/HEAD/logo.png",
  "_readme": "https://github.com/prdm0/AcceptReject/raw/HEAD/README.md",
  "_rundeps": [
    "assertthat",
    "cli",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "magrittr",
    "numDeriv",
    "purrr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "rlang",
    "S7",
    "scales",
    "scattermore",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "accept_reject.Rmd",
      "filename": "accept_reject.html",
      "title": "Acceptance and rejection method",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Understanding the Method",
        "Installation and loading the package",
        "Using the accept_reject Function",
        "Examples",
        "Generating discrete observations",
        "Generating continuous observations",
        "Accessing metadata"
      ],
      "created": "2024-04-08 14:36:06",
      "modified": "2024-05-06 19:21:53",
      "commits": 7
    },
    {
      "source": "it_works_for_any_univariate_distribution.Rmd",
      "filename": "it_works_for_any_univariate_distribution.html",
      "title": "It works for any univariate distribution",
      "engine": "knitr::rmarkdown",
      "headings": [
        "It works for any univariate distribution",
        "Modified Beta Weibull distribution",
        "Modified Beta Gamma distribution"
      ],
      "created": "2024-05-21 22:54:51",
      "modified": "2024-05-22 16:00:52",
      "commits": 5
    },
    {
      "source": "qqplot.Rmd",
      "filename": "qqplot.html",
      "title": "QQ-Plot",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Quantile-Quantile Plot",
        "General usage format:",
        "Examples",
        "Discrete case",
        "Continuous case"
      ],
      "created": "2024-05-06 19:21:53",
      "modified": "2024-05-06 19:21:53",
      "commits": 1
    },
    {
      "source": "inspect.Rmd",
      "filename": "inspect.html",
      "title": "Specifying a base probability density function",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Motivation",
        "Example of inspection"
      ],
      "created": "2024-04-14 18:56:22",
      "modified": "2024-04-14 20:20:50",
      "commits": 2
    }
  ],
  "_score": 4.643452676486188,
  "_indexed": true,
  "_nocasepkg": "acceptreject",
  "_universes": [
    "prdm0"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-07-20T05:58:31.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/4d9d97729c0979369dfd111f4457b41ab718b43fdcbf043fa9a551cb56c14006",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/29720153635"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-07-20T05:58:29.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/95df31af2d91f79cc763500715920e7230d125e3eb67b07a2746ac459cf848b5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/29720153635"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-07-20T05:58:36.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/5b4df50866eca975c456ff23f202e0fc176dc38b7d627d576700bf68b65e20f1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/29720153635"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-07-20T05:58:32.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/089c148d26687c20363cd7c619fc2a42ae4b858627e7c047f58100c99de77562",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/29720153635"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-07-20T05:57:28.000Z",
      "arch": "aarch64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/3066fb0f720ad708ecad013f8d2bc7593d4a94e2fbeb53177b2d42f265cdf545",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/29720153635"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-07-20T05:59:13.000Z",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/aa590afa2e01b8d7d8e46a29b84aa653147461ecced4c6eeb9ccad1945df03a4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/29720153635"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-07-20T05:57:33.000Z",
      "arch": "aarch64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/5f77e05ce5abe4a1a84c87f1dbeea3d318c9e47716617fe8799f0ec0ab365182",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/29720153635"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-07-20T05:58:56.000Z",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/b11d379514cc61f322b7b96f48ffc9f0cd77df96a20271c07f71c060536ca2fb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/29720153635"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.2",
      "date": "2026-07-20T05:58:34.000Z",
      "arch": "emscripten",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/8f4334a942fe8546a84035fd834a2b20f481999552ac051811b266503b8a623f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/29720153635"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-07-20T05:57:20.000Z",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/15670ee69dd880d0c75ba7e400a75a8ebee0d135916818da17bac3380f2b98af",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/29720153635"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-07-20T05:57:53.000Z",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/676b95a8d00d74cc9c5d4d878baa706df576b25c402040c92498993f926b3879",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/29720153635"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-07-20T05:57:22.000Z",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/4468c441fb18ceeb1444b01bb7c48396b069c9304fe4530fb499a203b4ec20b4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/29720153635"
    }
  ]
}