Learn R Programming

algebraic.dist (version 0.9.1)

density.lognormal: Probability density function for a log-normal distribution.

Description

Returns a function that evaluates the log-normal PDF at given points.

Usage

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

Value

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

Arguments

x

A lognormal object.

...

Additional arguments (not used).

Examples

Run this code
x <- lognormal(0, 1)
f <- density(x)
f(1)
f(2)

Run the code above in your browser using DataLab