rhalfnorm: Random number generator half Normal

View source: R/rhalfnorm.R

rhalfnormR Documentation

Random number generator half Normal

Description

Computes a random number.

Usage

rhalfnorm(n, mean = 0, sd = 1)

Details

For internal use

Examples


## The function is currently defined as
function(n, mean = 0, sd = 1) {
  abs(rnorm(n, mean, sd))
}

BNPdensity documentation built on April 1, 2023, 12:10 a.m.