powered by
Returns a function that evaluates the uniform PDF at given points.
# S3 method for uniform_dist density(x, ...)
A function function(t, log = FALSE, ...) returning the density (or log-density) at t.
function(t, log = FALSE, ...)
t
A uniform_dist object.
uniform_dist
Additional arguments (not used).
x <- uniform_dist(0, 10) f <- density(x) f(5) f(15)
Run the code above in your browser using DataLab