Learn R Programming

stlnpp (version 0.4.0)

density.tpp: Kernel estimation of intensity of one-dimensional point patterns

Description

Kernel estimation of intensity of one-dimensional point patterns.

Usage

# S3 method for tpp
density(x,tbw,at=c("points","pixels"),...)

Value

If at="points": a vector of intensity values at the data points of x.

If at="pixels": a vector of intensity values over a grid.

Arguments

x

an object of class tpp

tbw

time smoothing bandwidth

at

string specifying whether to compute the intensity values at a grid of pixel locations (at="pixels") or only at the points of x (at="points"). default is to estimate the intensity at pixels

...

arguments passed to density

Author

Mehdi Moradi <m2.moradi@yahoo.com> and Ottmar Cronie

Details

A vector of intensity values.

References

Mateu, J., Moradi, M., & Cronie, O. (2019). Spatio-temporal point patterns on linear networks: Pseudo-separable intensity estimation. Spatial Statistics, 100400.

See Also

Examples

Run this code
 
X <- tpp(sample(c(1:24),200,replace = TRUE))
plot(density(X))


Run the code above in your browser using DataLab