Density of the Pareto distribution. Equivalent to extraDistr::dpareto(x, a = 1, b = 1, log = FALSE) in R.
extraDistr::dpareto(x, a = 1, b = 1, log = FALSE)
Value(s) at which to evaluate: a number, number[] or Float64Array. The result has the same shape.
number[]
Float64Array
a and b (see ParetoParams) and log (see DensityOptions).
a
b
log
dpareto(2); // 0.25dpareto(3, { a: 2, b: 1.5 }); // 0.16666666666666666 Copy
dpareto(2); // 0.25dpareto(3, { a: 2, b: 1.5 }); // 0.16666666666666666
Density of the Pareto distribution. Equivalent to
extraDistr::dpareto(x, a = 1, b = 1, log = FALSE)in R.