Discontinuous Hamiltonian Monte Carlo with Varying Trajectory Length

Hamiltonian Monte Carlo for both continuous and discontinuous posterior distributions with a customizable trajectory length termination criterion. See Nishimura et al. (2020) for the original Discontinuous Hamiltonian Monte Carlo; Hoffman et al. (2014) and Betancourt (2016) for the definition of possible Hamiltonian Monte Carlo termination criteria.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("XDNUTS")

1.6.5 by Paolo Manildo, a year ago


Browse source code at https://github.com/cran/XDNUTS


Authors: Paolo Manildo [aut, cre] (ORCID:


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports base, coda, ggplot2, graphics, grDevices, gridExtra, parallel, purrr, Rcpp, Rdpack, stats, MASS

Suggests knitr, rmarkdown, KernSmooth

Linking to Rcpp, RcppArmadillo


See at CRAN