{
  "_id": "6a36311d3efcd9bda43f5aa1",
  "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-06-20 06:15:35 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>",
  "MD5sum": "79dafd74a2252b12cd49b1599db5ebd6",
  "_user": "prdm0",
  "_type": "src",
  "_file": "AcceptReject_0.1.2.tar.gz",
  "_fileid": "f007669e3afe8bf5c2600e95c8fb41f5fdccf02afeb5e1f5779f83bb57b810c6",
  "_filesize": 15978926,
  "_sha256": "f007669e3afe8bf5c2600e95c8fb41f5fdccf02afeb5e1f5779f83bb57b810c6",
  "_created": "2026-06-20T06:15:35.000Z",
  "_published": "2026-06-23T20:07:33.851Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 82461074403,
      "time": 163,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7762743538"
    },
    {
      "job": 82461074395,
      "time": 156,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7762742553"
    },
    {
      "job": 82461074387,
      "time": 197,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7762747380"
    },
    {
      "job": 82461074371,
      "time": 145,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7762741319"
    },
    {
      "job": 82461074376,
      "time": 95,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7762735572"
    },
    {
      "job": 82461074422,
      "time": 202,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7762747792"
    },
    {
      "job": 82461074389,
      "time": 116,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7762737931"
    },
    {
      "job": 82461074367,
      "time": 218,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7762749686"
    },
    {
      "job": 82460863925,
      "time": 201,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7762724571"
    },
    {
      "job": 82461074351,
      "time": 116,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7762738130"
    },
    {
      "job": 82461074364,
      "time": 166,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7762743468"
    },
    {
      "job": 82461074362,
      "time": 183,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7762745588"
    },
    {
      "job": 82461074360,
      "time": 140,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7762740698"
    }
  ],
  "_buildurl": "https://github.com/r-universe/prdm0/actions/runs/27862539500",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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
  },
  "_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": 118,
    "description": "PhD in Statistics and R/Python Language Enthusiast"
  },
  "_downloads": {
    "count": 731,
    "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.0",
  "_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": "14.2.0-4ubuntu2~24.04.1",
      "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-06-20T06:18:17.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "da80c29a15315d81290c36d8823082b16c127d29045661234aa8464e7e403eb8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/27862539500"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-06-20T06:18:02.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "3520757f8a5a7fe3734a98a64691b420abd476fb139268ee64518059311e8372",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/27862539500"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-06-20T06:18:48.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "0d188f87d5b9ed2359e9bcded4ec0971bdb76c49cd75bc5bdedd80f76e1ead22",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/27862539500"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-06-20T06:17:52.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "afbd9b1fcf9ef5e10bd339489e6325a78ebdf1fcdb25d01fc4267d9568808142",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/27862539500"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-06-20T06:17:14.000Z",
      "arch": "aarch64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "17455f7c1ae7aaccf7e41432b43c4575bc54ffebd796ffc875561037da808f5a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/27862539500"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-06-20T06:18:29.000Z",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "7a7cb55e07887c8cd91b0052883851487a6e38814c1623922e7817356a7d1319",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/27862539500"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-06-20T06:17:25.000Z",
      "arch": "aarch64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "a2c57e6548d8c27fb704236efc5afe42ec427ad7d6bbca5eccb419313290c9b3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/27862539500"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-06-20T06:18:42.000Z",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "86f5def10717b9fc49110c0426c40b199e4a3b9ecef10b3902b3434d7b0d60f5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/27862539500"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.2",
      "date": "2026-06-20T06:17:52.000Z",
      "arch": "emscripten",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "3de7ba20c31497a9750b994b674e0be61472a4c5f5765888a379f0199dca2762",
      "status": "success",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/27862539500"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-06-20T06:17:46.000Z",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "bf98a25918ae9004c8724bfc628397d6a7abbb31a64bb9fc1ec389572575abca",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/27862539500"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-06-20T06:18:07.000Z",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "f22ee551a14b9feeab281cc7cfbb8795d885978d51ea1e80820697f19c204f9f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/27862539500"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-06-20T06:17:07.000Z",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "ce97c9a2643d28254f5059c94cbe31909310ef88ed1694df380924005f005398",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/27862539500"
    }
  ]
}