Learn R Programming

geostats (version 1.5)

exp: exponential transformation

Description

Map a logged kernel density estimate from [\(-\infty,+\infty\)] to [\(0,\infty\)] by taking exponents.

Usage

# S3 method for density
exp(x)

Value

an object of class density

Arguments

x

an object of class density

Examples

Run this code
data(clasts,package='geostats')
lc <- log(clasts)
ld <- density(lc)
d <- exp(ld)
plot(d)

Run the code above in your browser using DataLab