https://cran.r-project.org/web/packages/tripack/tripack.pdf
