Package: mhn Type: Package Title: The Modified Half-Normal Distribution Version: 0.1.2 Authors@R: person("Tomotaka", "Momozaki", role = c("aut", "cre"), email = "momozaki.stat@gmail.com", comment = c(ORCID = "0000-0001-6735-0804")) Description: Provides density, distribution, quantile, and random generation functions for the Modified Half-Normal (MHN) distribution, along with moments and mode; the Fox-Wright Psi normalizing constant is evaluated internally. The MHN distribution arises as a conditional posterior in Bayesian Markov chain Monte Carlo and generalizes the half-normal, truncated normal, and square-root gamma distributions. Implements efficient sampling via Algorithms 1 and 3 of Sun, Kong & Pal (2023) , the relaxed transformed density rejection method of Gao & Wang (2025) , and, for the truncated normal special case, the sampler of Robert (1995) . License: MIT + file LICENSE Roxygen: list(markdown = TRUE) RoxygenNote: 7.3.3 Depends: R (>= 4.0) Imports: Rcpp (>= 1.0.13) LinkingTo: Rcpp (>= 1.0.13), BH (>= 1.78.0-0) SystemRequirements: C++17 Suggests: testthat (>= 3.1.5), knitr, rmarkdown, bench, Rmpfr Config/testthat/edition: 3 VignetteBuilder: knitr, rmarkdown URL: https://github.com/t-momozaki/mhn, https://t-momozaki.github.io/mhn/ BugReports: https://github.com/t-momozaki/mhn/issues Repository: https://t-momozaki.r-universe.dev Date/Publication: 2026-10-23 04:56:55 UTC RemoteUrl: https://github.com/t-momozaki/mhn RemoteRef: HEAD RemoteSha: 07a7591f02b73cbb3726ef20a643788538959a3a NeedsCompilation: yes Packaged: 2026-10-23 13:56:57 UTC; root Author: Tomotaka Momozaki [aut, cre] (ORCID: ) Maintainer: Tomotaka Momozaki