phalfnorm: Distribution function half Normal

View source: R/phalfnorm.R

phalfnormR Documentation

Distribution function half Normal

Description

Computes the cdf.

Usage

phalfnorm(q, mean = 0, sd = 1)

Details

For internal use

Examples


## The function is currently defined as
function(q, mean = 0, sd = 1) {
  ifelse(q < 0, 0, 1) * (pnorm(q, mean, sd) - pnorm(
    0, mean,
    sd
  )) / (1 - pnorm(0, mean, sd))
}

konkam/BNPdensity documentation built on March 14, 2024, 7:15 a.m.