{
  "_id": "6a0f6092acfb0bcc41c5bab1",
  "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-05-21 10:56:41 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": "1edbf3d9b3896a2a2d2f1f422b3f083a",
  "_user": "prdm0",
  "_type": "src",
  "_file": "AcceptReject_0.1.2.tar.gz",
  "_fileid": "6e1c2393b95654448209098414859163b59061204fc10ac3b004c237c77e80de",
  "_filesize": 15977574,
  "_sha256": "6e1c2393b95654448209098414859163b59061204fc10ac3b004c237c77e80de",
  "_created": "2026-05-21T10:56:41.000Z",
  "_published": "2026-05-21T19:44:18.500Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77254660664,
      "time": 152,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7133943062"
    },
    {
      "job": 77254660497,
      "time": 135,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7133938217"
    },
    {
      "job": 77254660602,
      "time": 135,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7133938265"
    },
    {
      "job": 77254660336,
      "time": 154,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7133943574"
    },
    {
      "job": 77254660861,
      "time": 95,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7134147214"
    },
    {
      "job": 77254660651,
      "time": 419,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7134218624"
    },
    {
      "job": 77254660720,
      "time": 97,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7134107562"
    },
    {
      "job": 77254660362,
      "time": 193,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7134139096"
    },
    {
      "job": 77254659596,
      "time": 223,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7133894684"
    },
    {
      "job": 77254659722,
      "time": 134,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7145564433"
    },
    {
      "job": 77254660302,
      "time": 119,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7133933066"
    },
    {
      "job": 77254660480,
      "time": 97,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7133926086"
    },
    {
      "job": 77254660695,
      "time": 128,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7133935556"
    }
  ],
  "_buildurl": "https://github.com/r-universe/prdm0/actions/runs/26221552045",
  "_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",
    "description": "PhD in Statistics and R/Python Language Enthusiast"
  },
  "_downloads": {
    "count": 718,
    "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-05-21T10:59:09.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "c2adca572219d3b675445fb2dda5ce5aec1be2e72d3db78bb94cbe91fb0fa0f3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/26221552045"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-05-21T10:58:53.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "0a2e6c446c7c4cc22f3ded6b1fe4dbab49b02f32ae2a10e37fcfa6b7785368b7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/26221552045"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-05-21T10:58:56.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "8a99fe1e1c01d9f5ea336b33878e48a40ab7368ef8ff18af243b6133dc238484",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/26221552045"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-05-21T10:59:14.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "c1a48e10207f79c42f719d036e278096c9db46bee3bc170f04c4c5611da71e2e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/26221552045"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-05-21T11:09:46.000Z",
      "arch": "aarch64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "8498a86511c03215de87714893babe21afd4082073029e6519811a4221020c28",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/26221552045"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-05-21T11:11:55.000Z",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "b2afdda54041921af8abd834b6f71d41998b5a7745dadfdc3beba8be9be498ec",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/26221552045"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-05-21T11:07:46.000Z",
      "arch": "aarch64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "1e89739b5e2cb3cfe24fa62ee4c7b9ef0d8ff2683ece70bc0bb005ec7be79221",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/26221552045"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-05-21T11:08:51.000Z",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "921ae4a22f58ec78c460759ebe755a38135fe9379e114619269055d14a4ce8c6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/26221552045"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.2",
      "date": "2026-05-21T19:43:35.000Z",
      "arch": "emscripten",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "32cab74a9d931074d1b8b9771777ffc074fd8dda5f6042366f943f5a5f993b26",
      "status": "success",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/26221552045"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-05-21T10:58:08.000Z",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "d361111dcd825b5f200dd64484b4261e67c4202faa5a4b1d77fb6ccf5d59a763",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/26221552045"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-05-21T10:58:03.000Z",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "6230d507b79cb9985b93d8aa96ca34d63122dcdf27fe04e4afa71de6b1396146",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/26221552045"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-05-21T10:58:10.000Z",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "cf723172770a29ee5abcb572f9f3991e203b90cc0107d7958b24e140e0fb0271",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/26221552045"
    }
  ]
}