Learn R Programming

geostats (version 1.6)

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(catchments,package='geostats')
lc <- log(catchments$CaMg)
ld <- density(lc)
d <- exp(ld)
plot(d)

Run the code above in your browser using DataLab