R/rhalfnorm.R

Defines functions rhalfnorm

Documented in rhalfnorm

#' Random number generator half Normal
#'
#' Computes a random number.
#'
#' For internal use
#'
#' @keywords internal
#' @examples
#'
#' ## The function is currently defined as
#' function(n, mean = 0, sd = 1) {
#'   abs(rnorm(n, mean, sd))
#' }
rhalfnorm <-
  function(n, mean = 0, sd = 1) {
    abs(rnorm(n, mean, sd))
  }

Try the BNPdensity package in your browser

Any scripts or data that you put into this service are public.

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