Density of the uniform distribution. Equivalent to R's dunif(x, min = 0, max = 1, log = FALSE).
dunif(x, min = 0, max = 1, log = FALSE)
Value(s) at which to evaluate: a number, number[] or Float64Array. The result has the same shape.
number[]
Float64Array
min and max (see UniformParams) and log (see DensityOptions).
min
max
log
The density (or log density).
dunif(0.5); // 1dunif([1, 3], { min: 0, max: 2 }); // [0.5, 0] Copy
dunif(0.5); // 1dunif([1, 3], { min: 0, max: 2 }); // [0.5, 0]
Density of the uniform distribution. Equivalent to R's
dunif(x, min = 0, max = 1, log = FALSE).