Density of the Cauchy distribution. Equivalent to R's dcauchy(x, location = 0, scale = 1, log = FALSE).
dcauchy(x, location = 0, scale = 1, log = FALSE)
Value(s) at which to evaluate: a number, number[] or Float64Array. The result has the same shape.
number[]
Float64Array
location and scale (see LocationScaleParams) and log (see DensityOptions).
location
scale
log
The density (or log density).
dcauchy(0); // 0.3183098861837907dcauchy(1, { location: 1, scale: 2 }); // 0.15915494309189535 Copy
dcauchy(0); // 0.3183098861837907dcauchy(1, { location: 1, scale: 2 }); // 0.15915494309189535
Density of the Cauchy distribution. Equivalent to R's
dcauchy(x, location = 0, scale = 1, log = FALSE).