Package: mhn 0.1.0

Tomotaka Momozaki

mhn: The Modified Half-Normal Distribution

Provides density, distribution, quantile, and random generation functions for the Modified Half-Normal (MHN) distribution, along with moments, mode, and the Fox-Wright Psi function used as the normalizing constant. The MHN distribution arises as a conditional posterior in Bayesian MCMC and generalizes the half-normal, truncated normal, and square-root gamma distributions. Implements efficient sampling via the Sun, Kong & Pal (2023) <doi:10.1080/03610926.2021.1934700> algorithms and the Gao & Wang (2025) <doi:10.1080/03610918.2025.2524551> RTDR method.

Authors:Tomotaka Momozaki [aut, cre]

mhn_0.1.0.tar.gz
mhn_0.1.0.tar.gz(r-4.7-arm64)mhn_0.1.0.tar.gz(r-4.7-x86_64)mhn_0.1.0.tar.gz(r-4.6-arm64)mhn_0.1.0.tar.gz(r-4.6-x86_64)
mhn_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
mhn/json (API)
NEWS

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

Bug tracker:https://github.com/t-momozaki/mhn/issues

Pkgdown/docs site:https://t-momozaki.github.io

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

On CRAN:

Conda:

cpp

3.00 score 6 scripts 9 exports 2 dependencies

Last updated from:042611f118. Checks:6 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK167
linux-devel-x86_64OK171
source / vignettesOK242
linux-release-arm64OK190
linux-release-x86_64OK160
wasm-releaseOK158

Exports:dmhnmhn_kurtosismhn_meanmhn_modemhn_skewnessmhn_varpmhnqmhnrmhn

Dependencies:BHRcpp

Introduction to the mhn Package

Rendered fromintroduction.Rmdusingknitr::rmarkdownon May 27 2026.

Last update: 2026-05-27
Started: 2026-05-27

Theoretical background of the mhn package

Rendered fromtheory.Rmdusingknitr::rmarkdownon May 27 2026.

Last update: 2026-05-27
Started: 2026-05-27