{
  "_id": "6afc3122117874b00e23b532",
  "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-11-17 10:09:22 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/6c2e1c090b74b42b1c196b991e75417ff58a52dc6f3b014c01c7ec329bd0bdab",
  "_filesize": 15973296,
  "_sha256": "6c2e1c090b74b42b1c196b991e75417ff58a52dc6f3b014c01c7ec329bd0bdab",
  "_expires": "2027-02-25T10:49:04.000Z",
  "_created": "2026-11-17T10:09:22.000Z",
  "_published": "2026-11-17T10:49:06.299Z",
  "_upstream": "https://github.com/prdm0/AcceptReject",
  "_status": "success",
  "_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
  },
  "_jobs": [
    {
      "job": 133966914079,
      "time": 145,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14318398752"
    },
    {
      "job": 133966914078,
      "time": 147,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14319595190"
    },
    {
      "job": 133966914139,
      "time": 133,
      "config": "linux-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14317539770"
    },
    {
      "job": 133966913994,
      "time": 171,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14317624592"
    },
    {
      "job": 133966914064,
      "time": 227,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14321250965"
    },
    {
      "job": 133966914019,
      "time": 299,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14320534298"
    },
    {
      "job": 133966913927,
      "time": 231,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14320237248"
    },
    {
      "job": 133966914008,
      "time": 311,
      "config": "macos-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14321356183"
    },
    {
      "job": 133964493392,
      "time": 269,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14318122827"
    },
    {
      "job": 133966914053,
      "time": 98,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "14317868907"
    },
    {
      "job": 133966914169,
      "time": 342,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14319520951"
    },
    {
      "job": 133966914129,
      "time": 116,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14318468531"
    },
    {
      "job": 133966914082,
      "time": 117,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14318297888"
    },
    {
      "job": 133966914052,
      "time": 361,
      "config": "windows-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14318233433"
    },
    {
      "job": 133966914171,
      "time": 130,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14318852031"
    }
  ],
  "_buildurl": "https://github.com/r-universe/prdm0/actions/runs/44061514713",
  "_commit": {
    "id": "469f88f6b0655b00cba660acc50e1402765d46e6",
    "author": "prdm0 <pedro.rafael.marinho@gmail.com>",
    "committer": "prdm0 <pedro.rafael.marinho@gmail.com>",
    "message": "Update vignette\n",
    "time": 1716393652
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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": 126,
    "description": "PhD in Statistics and R/Python Language Enthusiast"
  },
  "_downloads": {
    "count": 742,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/AcceptReject"
  },
  "_devurl": "https://github.com/prdm0/acceptreject",
  "_pkgdown": "https://prdm0.github.io/AcceptReject/",
  "_abi": {
    "exports": [],
    "imports": [
      {
        "key": "Rcpp::Rcpp_precious_preserve()",
        "hash": "33a97ea62b293da6"
      },
      {
        "key": "Rcpp::Rcpp_precious_remove()",
        "hash": "63d26947ba7e1377"
      },
      {
        "key": "Rcpp::dataptr()",
        "hash": "54e69ad2e6668c83"
      },
      {
        "key": "Rcpp::demangle()",
        "hash": "b0cfd6754c5ebc4e"
      },
      {
        "key": "Rcpp::enterRNGScope()",
        "hash": "a04a299137cef947"
      },
      {
        "key": "Rcpp::exitRNGScope()",
        "hash": "a04a299137cef947"
      },
      {
        "key": "Rcpp::rcpp_get_stack_trace()",
        "hash": "c684a9bbe15cdc52"
      },
      {
        "key": "Rcpp::rcpp_set_stack_trace()",
        "hash": "33a97ea62b293da6"
      }
    ]
  },
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/AcceptReject.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_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.6020599913279625,
  "_indexed": true,
  "_nocasepkg": "acceptreject",
  "_universes": [
    "prdm0"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-11-17T10:11:50.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/fae9aa0356ef08b8f4ad76b6131e2a311f494f598b14954a29e5655db37248c1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/44061514713"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-11-17T10:11:54.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/b1570b88aefc28992243a31841e66f7b7bcf2fbe152b35cbee9b8304b8d6b024",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/44061514713"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-11-17T10:11:46.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/e6475702d3b27f74b6f958027d9374491945ffe36690b1408f118362946cf35c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/44061514713"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-11-17T10:12:15.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/dd1242b163476484cbfaefe13d55fdee0f64aa8763651e210a6e0601dc73c80c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/44061514713"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-11-17T10:42:19.000Z",
      "arch": "aarch64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/98fac466b9668b877a58f4f39bddb7ca7c38f30daf7449263d7936685f4ad9a0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/44061514713"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-11-17T10:46:54.000Z",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/9313a9201042a593ca8b489fef512c6eaf1ffa41c2f18cf290647ed26c4e39ed",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/44061514713"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-11-17T10:34:39.000Z",
      "arch": "aarch64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/7f9a56185696e48817bb600aa7f147058da06751338bfe389d62c4891fa044f8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/44061514713"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-11-17T10:39:29.000Z",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/24ac79d240498a26b85127c7a3187a4dd905f421ced82dacb0faec9f972313e6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/44061514713"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.2",
      "date": "2026-11-17T10:11:30.000Z",
      "arch": "emscripten",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/0ec6fa8e34c11488448772860f6e23b7498112d3fb0b33ae9d8af314488e32b4",
      "status": "success",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/44061514713"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-11-17T10:14:16.000Z",
      "arch": "aarch64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/1fa224861738ae031eecc51980e8c857e80fd6e5b75c779c1434924c4ecb71a2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/44061514713"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-11-17T10:10:45.000Z",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/ac2cbb009974bc2875a4815d10e572a7d293f2d93ecb7af99d2763406ce14c16",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/44061514713"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-11-17T10:10:51.000Z",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/b349abcda4340342f22b1d541e8cca374a0f6b73d0eabb8c85e33dac4323b1d5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/44061514713"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-11-17T10:14:43.000Z",
      "arch": "aarch64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/de9f3ca2343184b5f6dbc9b3f91fabe1bd2e0a5d2ee9fca98f4e94e972886ca9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/44061514713"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-11-17T10:10:55.000Z",
      "arch": "x86_64",
      "commit": "469f88f6b0655b00cba660acc50e1402765d46e6",
      "fileid": "https://r2.ropensci.org/77ef300c0aa7f4e17a3ff1dbec966bb6208a98de3beac079c6a1029eb5f25ba2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/prdm0/actions/runs/44061514713"
    }
  ]
}