Learn R Programming

algebraic.dist (version 0.9.1)

density.weibull_dist: Probability density function for a Weibull distribution.

Description

Returns a function that evaluates the Weibull PDF at given points.

Usage

# S3 method for weibull_dist
density(x, ...)

Value

A function function(t, log = FALSE, ...) returning the density (or log-density) at t.

Arguments

x

A weibull_dist object.

...

Additional arguments (not used).

Examples

Run this code
x <- weibull_dist(shape = 2, scale = 3)
f <- density(x)
f(1)
f(3)

Run the code above in your browser using DataLab