dhalfcauchy: Density half Cauchy

View source: R/dhalfcauchy.R

dhalfcauchyR Documentation

Density half Cauchy

Description

Computes the density.

Usage

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

Details

For internal use

Examples


## 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
  ))
}

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