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)
    <doi:10.1080/03610926.2021.1934700>, the relaxed transformed density
    rejection method of Gao & Wang (2025)
    <doi:10.1080/03610918.2025.2524551>, and, for the truncated normal
    special case, the sampler of Robert (1995) <doi:10.1007/BF00143942>.
License: MIT + file LICENSE
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
NeedsCompilation: yes
Packaged: 2026-10-21 23:16:06 UTC; t_momozaki
Author: Tomotaka Momozaki [aut, cre] (ORCID:
    <https://orcid.org/0000-0001-6735-0804>)
Maintainer: Tomotaka Momozaki <momozaki.stat@gmail.com>
Repository: CRAN
Date/Publication: 2026-10-23 06:10:02 UTC
