| density.uniform_dist | R Documentation |
Returns a function that evaluates the uniform PDF at given points.
## S3 method for class 'uniform_dist'
density(x, ...)
x |
A |
... |
Additional arguments (not used). |
A function function(t, log = FALSE, ...) returning the
density (or log-density) at t.
x <- uniform_dist(0, 10)
f <- density(x)
f(5)
f(15)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.