dSfunCreate: Create density of probabilities spline interpolated functions...

Description Usage Arguments Value See Also Examples

View source: R/densities.R

Description

dSfunCreate takes a set of data and generates a density of probabilities function usting splines to interpolate between the resulting sample points.

Usage

1
dSfunCreate(x.data, ...)

Arguments

x.data

A numeric vector containing the data.

...

All the other, optional, parameters required by density function to generate a kernel density estimation from the data.

Value

returns a function performing spline interpolation on a set of points generated from a kernel density of probabilities from the given x.data.

See Also

ffunCreate for a more generic function.

Examples

1
2
3
4
X <- log(rgamma(150,5)) # Random data generation
dfun <- dSfunCreate(X)   # To create a density function from X
dfun(c(0.45, 1.84, 2.3))
plot(dfun, xlim=c(-0.1, 3.0))

juliosergio/spitools documentation built on May 24, 2019, 5:01 a.m.