{
  "_id": "6adb726e58000136b5c82ae8",
  "Package": "mhn",
  "Type": "Package",
  "Title": "The Modified Half-Normal Distribution",
  "Version": "0.1.2",
  "Authors@R": "person(\"Tomotaka\", \"Momozaki\", role = c(\"aut\", \"cre\"),\nemail = \"momozaki.stat@gmail.com\",\ncomment = c(ORCID = \"0000-0001-6735-0804\"))",
  "Description": "Provides density, distribution, quantile, and random\ngeneration functions for the Modified Half-Normal (MHN)\ndistribution, along with moments and mode; the Fox-Wright Psi\nnormalizing constant is evaluated internally. The MHN\ndistribution arises as a conditional posterior in Bayesian\nMarkov chain Monte Carlo and generalizes the half-normal,\ntruncated normal, and square-root gamma distributions.\nImplements efficient sampling via Algorithms 1 and 3 of Sun,\nKong & Pal (2023) <doi:10.1080/03610926.2021.1934700>, the\nrelaxed transformed density rejection method of Gao & Wang\n(2025) <doi:10.1080/03610918.2025.2524551>, and, for the\ntruncated normal special case, the sampler of Robert (1995)\n<doi:10.1007/BF00143942>.",
  "License": "MIT + file LICENSE",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "SystemRequirements": "C++17",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr, rmarkdown",
  "URL": "https://github.com/t-momozaki/mhn,\nhttps://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": {
    "Date": "2026-10-23 13:56:57 UTC",
    "User": "root"
  },
  "Author": "Tomotaka Momozaki [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-6735-0804>)",
  "Maintainer": "Tomotaka Momozaki <momozaki.stat@gmail.com>",
  "_user": "t-momozaki",
  "_type": "src",
  "_file": "mhn_0.1.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/a108dfd066a20b9cd267652bec49fc9d88951000f9f6fe84065db334b86643e1",
  "_filesize": 1148155,
  "_sha256": "a108dfd066a20b9cd267652bec49fc9d88951000f9f6fe84065db334b86643e1",
  "_expires": "2027-01-31T14:42:51.000Z",
  "_created": "2026-10-23T13:56:57.000Z",
  "_published": "2026-10-23T14:42:53.777Z",
  "_upstream": "https://github.com/t-momozaki/mhn",
  "_status": "success",
  "_maintainer": {
    "name": "Tomotaka Momozaki",
    "email": "momozaki.stat@gmail.com",
    "login": "t-momozaki",
    "orcid": "0000-0001-6735-0804",
    "description": "",
    "uuid": 121425798
  },
  "_jobs": [
    {
      "job": 120454391257,
      "time": 204,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12507231202"
    },
    {
      "job": 120454391468,
      "time": 208,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12507405442"
    },
    {
      "job": 120454391327,
      "time": 200,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12506184367"
    },
    {
      "job": 120454391481,
      "time": 255,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12506463830"
    },
    {
      "job": 120454391231,
      "time": 212,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12509795632"
    },
    {
      "job": 120454391232,
      "time": 461,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12509412465"
    },
    {
      "job": 120454391315,
      "time": 227,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12507794205"
    },
    {
      "job": 120454391244,
      "time": 444,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12509252513"
    },
    {
      "job": 120452214382,
      "time": 237,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12507150360"
    },
    {
      "job": 120454391195,
      "time": 141,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12507295812"
    },
    {
      "job": 120454391261,
      "time": 355,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12506409457"
    },
    {
      "job": 120454391206,
      "time": 444,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12507042464"
    },
    {
      "job": 120454392010,
      "time": 259,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12506916549"
    },
    {
      "job": 120454391494,
      "time": 399,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12507540702"
    },
    {
      "job": 120454391306,
      "time": 362,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12507375708"
    }
  ],
  "_buildurl": "https://github.com/r-universe/t-momozaki/actions/runs/39964697086",
  "_commit": {
    "id": "07a7591f02b73cbb3726ef20a643788538959a3a",
    "author": "Tomotaka Momozaki <momozaki.stat@gmail.com>",
    "committer": "Tomotaka Momozaki <momozaki.stat@gmail.com>",
    "message": "Bring the mirror up to the 0.1.2 source that goes to CRAN\n\nThe help pages now state what each function returns and over which range\nit is accurate, and leave the numerical methods to a new Appendix A of\nthe theory vignette; Appendix B lists the misprints in the source\npapers. The timings behind method = \"auto\" were taken again with the\ncode of this release, and the thresholds stay. The README says where\nthe fourth citation entry is. No compiled code changed.\n",
    "time": 1792731415
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.13",
      "role": "LinkingTo"
    },
    {
      "package": "BH",
      "version": ">= 1.78.0-0",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.13",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.1.5",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "bench",
      "role": "Suggests"
    },
    {
      "package": "Rmpfr",
      "role": "Suggests"
    }
  ],
  "_owner": "t-momozaki",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-21",
      "n": 9
    },
    {
      "week": "2026-28",
      "n": 3
    },
    {
      "week": "2026-29",
      "n": 4
    },
    {
      "week": "2026-30",
      "n": 6
    },
    {
      "week": "2026-36",
      "n": 3
    },
    {
      "week": "2026-38",
      "n": 2
    },
    {
      "week": "2026-43",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v0.1.2",
      "date": "2026-10-23"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "t-momozaki",
      "count": 29,
      "uuid": 121425798
    }
  ],
  "_userbio": {
    "uuid": 121425798,
    "type": "user",
    "name": "Tomotaka Momozaki",
    "followers": 3
  },
  "_downloads": {
    "count": 475,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/mhn"
  },
  "_devurl": "https://github.com/t-momozaki/mhn",
  "_pkgdown": "https://t-momozaki.github.io/mhn/",
  "_searchresults": 6,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/mhn.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/t-momozaki/mhn",
  "_realowner": "t-momozaki",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-05-27"
    },
    {
      "version": "0.1.1",
      "date": "2026-09-23"
    },
    {
      "version": "0.1.2",
      "date": "2026-10-23"
    }
  ],
  "_exports": [
    "dmhn",
    "mhn_kurtosis",
    "mhn_mean",
    "mhn_mode",
    "mhn_skewness",
    "mhn_var",
    "pmhn",
    "qmhn",
    "rmhn"
  ],
  "_help": [
    {
      "page": "dmhn",
      "title": "Density of the Modified Half-Normal Distribution",
      "topics": [
        "dmhn"
      ]
    },
    {
      "page": "mhn_kurtosis",
      "title": "Excess Kurtosis of the Modified Half-Normal Distribution",
      "topics": [
        "mhn_kurtosis"
      ]
    },
    {
      "page": "mhn_mean",
      "title": "Mean of the Modified Half-Normal Distribution",
      "topics": [
        "mhn_mean"
      ]
    },
    {
      "page": "mhn_mode",
      "title": "Mode of the Modified Half-Normal Distribution",
      "topics": [
        "mhn_mode"
      ]
    },
    {
      "page": "mhn_skewness",
      "title": "Skewness of the Modified Half-Normal Distribution",
      "topics": [
        "mhn_skewness"
      ]
    },
    {
      "page": "mhn_var",
      "title": "Variance of the Modified Half-Normal Distribution",
      "topics": [
        "mhn_var"
      ]
    },
    {
      "page": "pmhn",
      "title": "Distribution Function of the Modified Half-Normal Distribution",
      "topics": [
        "pmhn"
      ]
    },
    {
      "page": "qmhn",
      "title": "Quantile Function of the Modified Half-Normal Distribution",
      "topics": [
        "qmhn"
      ]
    },
    {
      "page": "rmhn",
      "title": "Random Generation from the Modified Half-Normal Distribution",
      "topics": [
        "rmhn"
      ]
    }
  ],
  "_readme": "https://github.com/t-momozaki/mhn/raw/HEAD/README.md",
  "_rundeps": [
    "BH",
    "Rcpp"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "introduction.Rmd",
      "filename": "introduction.html",
      "title": "Introduction to the mhn Package",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The MHN distribution",
        "Density: dmhn()",
        "Distribution function: pmhn()",
        "Quantile function: qmhn()",
        "Random generation: rmhn()",
        "Moments and mode",
        "Special cases",
        "Further reading",
        "References"
      ],
      "created": "2026-05-18 06:46:16",
      "modified": "2026-10-20 23:16:31",
      "commits": 4
    },
    {
      "source": "theory.Rmd",
      "filename": "theory.html",
      "title": "Theoretical background of the mhn package",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Scope",
        "The MHN($\\alpha$, $\\beta$, $\\gamma$) family",
        "Shape and moments",
        "The Fox–Wright $\\Psi$ normalising constant",
        "Sampling: Sun et al. (2023)",
        "Algorithm 1 — $\\gamma > 0$, $\\alpha > 1$",
        "Algorithm 3 — $\\gamma \\leq 0$",
        "Why Algorithm 2 is not implemented",
        "Sampling: Gao & Wang (2025) RTDR",
        "$T_{c}$-concavity",
        "Working on the log axis when $\\alpha < 1$",
        "The four regions",
        "Why \"relaxed\"",
        "The rmhn(method = \"auto\") dispatch",
        "References",
        "Appendix A. Numerical details",
        "A.1 Special cases and their neighbourhoods",
        "A.2 Moments and mode",
        "A.3 Evaluating $\\Psi$",
        "A.4 Density, distribution and quantile functions",
        "Shared by the three functions",
        "Density",
        "Distribution function",
        "Quantile function",
        "A.5 Random generation at extreme parameters",
        "A.6 Timings behind method = \"auto\"",
        "Appendix B. Misprints in the source papers",
        "B.1 Sun et al. (2023)",
        "B.2 Gao & Wang (2025)"
      ],
      "created": "2026-05-18 06:46:16",
      "modified": "2026-10-23 04:56:55",
      "commits": 7
    }
  ],
  "_score": 4.845098040014257,
  "_indexed": true,
  "_nocasepkg": "mhn",
  "_universes": [
    "t-momozaki"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-10-23T13:59:10.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "07a7591f02b73cbb3726ef20a643788538959a3a",
      "fileid": "https://r2.ropensci.org/a65603d8d69f3036561c218daee4d2bce4ff456e58cb6e934855e539b13e1d35",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/t-momozaki/actions/runs/39964697086"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-10-23T13:59:22.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "07a7591f02b73cbb3726ef20a643788538959a3a",
      "fileid": "https://r2.ropensci.org/da31ad7dc0fd84b04d7a056911858331a1603cdddbb730989759cbc6ab1391e2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/t-momozaki/actions/runs/39964697086"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-10-23T13:59:06.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "07a7591f02b73cbb3726ef20a643788538959a3a",
      "fileid": "https://r2.ropensci.org/9fe7cc738fa011606ee3175ccb3150bfb02aca069b4b4c3e6e96a18fafe90107",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/t-momozaki/actions/runs/39964697086"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-10-23T13:59:27.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "07a7591f02b73cbb3726ef20a643788538959a3a",
      "fileid": "https://r2.ropensci.org/bb37184ca4124a13c32ad4fbe7b5c680502a27dc5359743642dde588a96be2a2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/t-momozaki/actions/runs/39964697086"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-10-23T14:37:29.000Z",
      "arch": "aarch64",
      "commit": "07a7591f02b73cbb3726ef20a643788538959a3a",
      "fileid": "https://r2.ropensci.org/0d7ae59deb4ad980b431aa6a59ced99ebceba8f5e329bac5ae382bc2de52ff82",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/t-momozaki/actions/runs/39964697086"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-10-23T14:36:50.000Z",
      "arch": "x86_64",
      "commit": "07a7591f02b73cbb3726ef20a643788538959a3a",
      "fileid": "https://r2.ropensci.org/7e12c5e54395220611c8a8d5d48da59f1f4b66023b43f10c6b1f7951e25c2a44",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/t-momozaki/actions/runs/39964697086"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-10-23T14:23:32.000Z",
      "arch": "aarch64",
      "commit": "07a7591f02b73cbb3726ef20a643788538959a3a",
      "fileid": "https://r2.ropensci.org/7e0d6fd6fc95a236ce3a7049ddf016d791a483281d8f268919c424413c0cdd86",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/t-momozaki/actions/runs/39964697086"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-10-23T14:36:52.000Z",
      "arch": "x86_64",
      "commit": "07a7591f02b73cbb3726ef20a643788538959a3a",
      "fileid": "https://r2.ropensci.org/02282468389a6c38ecefee8225cf580abaf76958bc9b96fe2a825a1a84085f5d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/t-momozaki/actions/runs/39964697086"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.2",
      "date": "2026-10-23T13:59:18.000Z",
      "arch": "emscripten",
      "commit": "07a7591f02b73cbb3726ef20a643788538959a3a",
      "fileid": "https://r2.ropensci.org/130e0589382e722043ade9254c484535d03f60767075f5cdcec51e9b25d99a2b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/t-momozaki/actions/runs/39964697086"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-10-23T14:00:35.000Z",
      "arch": "aarch64",
      "commit": "07a7591f02b73cbb3726ef20a643788538959a3a",
      "fileid": "https://r2.ropensci.org/d5383294546c2ef78eeea07d7eed452299d90a686ae6f636d93012f59350e147",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/t-momozaki/actions/runs/39964697086"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-10-23T13:59:01.000Z",
      "arch": "x86_64",
      "commit": "07a7591f02b73cbb3726ef20a643788538959a3a",
      "fileid": "https://r2.ropensci.org/a2c40d3493dbe1caf2c6fbd00aa45a1a9c66249d3ee4b9fff3ddcf908819d1af",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/t-momozaki/actions/runs/39964697086"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-10-23T13:58:36.000Z",
      "arch": "x86_64",
      "commit": "07a7591f02b73cbb3726ef20a643788538959a3a",
      "fileid": "https://r2.ropensci.org/6b5560079e20be9c2cc2e64d155ca130db1f2911385d9ffff6d8534d3e5d4d59",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/t-momozaki/actions/runs/39964697086"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-10-23T14:01:21.000Z",
      "arch": "aarch64",
      "commit": "07a7591f02b73cbb3726ef20a643788538959a3a",
      "fileid": "https://r2.ropensci.org/c0ea3ebd9154de0c57b0e8ba235656883436024d0aed0c31f74b9780048496c2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/t-momozaki/actions/runs/39964697086"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-10-23T13:59:17.000Z",
      "arch": "x86_64",
      "commit": "07a7591f02b73cbb3726ef20a643788538959a3a",
      "fileid": "https://r2.ropensci.org/e35fa6944145553e144e134edba1e9a03670a552e9ddaccb485ca04d20ee10c4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/t-momozaki/actions/runs/39964697086"
    }
  ]
}