Package: cubature 2.2.0

Balasubramanian Narasimhan

cubature: Adaptive Multivariate Integration over Hypercubes

R wrappers around the cubature C library of Steven G. Johnson for adaptive multivariate integration over hypercubes and the Cuba C library of Thomas Hahn for deterministic and Monte Carlo integration. A unified interface is provided via `cubintegrate`, and both scalar and vector interfaces are available for cubature and Cuba routines; the vector interfaces are recommended for performance-sensitive work, as demonstrated in the vectorization vignette. An optional robust error estimator is available for non-smooth integrands.

Authors:Balasubramanian Narasimhan [aut, cre], Manuel Koller [ctb], Dirk Eddelbuettel [ctb], Steven G. Johnson [aut], Thomas Hahn [aut], Annie Bouvier [aut], Kiên Kiêu [aut], Simen Gaure [ctb]

cubature_2.2.0.tar.gz
cubature_2.2.0.zip(r-4.7-x86_64)cubature_2.2.0.zip(r-4.7-arm64)cubature_2.2.0.zip(r-4.6-x86_64)cubature_2.2.0.zip(r-4.6-arm64)cubature_2.2.0.zip(r-4.5-x86_64)
cubature_2.2.0.tgz(r-4.6-x86_64)cubature_2.2.0.tgz(r-4.6-arm64)cubature_2.2.0.tgz(r-4.5-x86_64)cubature_2.2.0.tgz(r-4.5-arm64)
cubature_2.2.0.tar.gz(r-4.7-arm64)cubature_2.2.0.tar.gz(r-4.7-x86_64)cubature_2.2.0.tar.gz(r-4.6-arm64)cubature_2.2.0.tar.gz(r-4.6-x86_64)
cubature_2.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
cubature/json (API)

# Install 'cubature' in R:
install.packages('cubature', repos = c('https://bnaras.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/bnaras/cubature/issues

Pkgdown/docs site:https://bnaras.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cubaturemonte-carlo-integrationnumerical-integrationfortrancpp

11.82 score 14 stars 186 packages 616 scripts 23k downloads 1 mentions 9 exports 1 dependencies

Last updated from:f73dbb7d15. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK133
linux-devel-x86_64OK181
source / vignettesOK258
linux-release-arm64OK131
linux-release-x86_64OK142
macos-release-arm64OK119
macos-release-x86_64OK222
macos-oldrel-arm64OK113
macos-oldrel-x86_64OK172
windows-devel-arm64OK298
windows-devel-x86_64OK156
windows-release-arm64OK209
windows-release-x86_64OK120
windows-oldrel-x86_64OK84
wasm-releaseOK99

Exports:adaptIntegratecubintegratecuhredefault_argsdivonnehcubaturepcubaturesuavevegas

Dependencies:Rcpp

Get started with cubature
Introduction | Your first integral | The unified cubintegrate() interface | Choosing a method | Vector-valued integrands | Robustness: when hcubature and pcubature can silently fail | The opt-in robust path | When robust is not enough: the sampling-density cliff | The NOT_CONVERGED return code | Where to go next | Implementation notes | Session info

Last update: 2026-04-16
Started: 2016-11-25

Vectorization benchmarks
When to read this | A timing harness | Example 1 | Multivariate normal | Product of cosines | Gaussian function | Discontinuous function | A simple polynomial (product of coordinates) | Gaussian centered at $\frac{1}{2}$ | Double Gaussian | Tsuda's example | Morokoff & Caflisch example | Wang-Landau sampling 1d, 2d examples | Summary | Session info

Last update: 2026-04-15
Started: 2026-04-15