BNPdensity (version 2019.9.11)

dhalfcauchy: Density half Cauchy

Description

Computes the density.

Usage

dhalfcauchy(x, location = 0, scale = 1)

Arguments

Details

For internal use

Examples

Run this code
# NOT RUN {
## The function is currently defined as
function(x, location = 0, scale = 1) {
  ifelse(x < 0, 0, 1) * dcauchy(x, location, scale) / (1 - pcauchy(
    0,
    location, scale
  ))
}
# }

Run the code above in your browser using DataLab