BNPdensity (version 2023.3.8)

rhalfnorm: Random number generator half Normal

Description

Computes a random number.

Usage

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

Arguments

Details

For internal use

Examples

Run this code

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

Run the code above in your browser using DataLab