Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


stlnpp (version 0.4.0)

unique.stlpp: Extract unique points from a spatio-temporal point pattern on a linear network

Description

This function extracts unique points from a spatio-temporal point pattern on a linear network.

Usage

# S3 method for stlpp
unique(x,...)

Value

A spatio-temporal point pattern on a linear network with no duplicated point.

Arguments

x

a spatio-temporal point pattern of class stlpp

...

arguments for unique

Author

Mehdi Moradi <m2.moradi@yahoo.com>

Details

This function extracts unique points from a spatio-temporal point pattern on a linear network.

References

Moradi, M., & Mateu, J. (2020). First-and second-order characteristics of spatio-temporal point processes on linear networks. Journal of Computational and Graphical Statistics, 29(3), 432-443.

See Also

Examples

Run this code
 
X <-  rpoistlpp(0.1,0,5,L=easynet)
df <- as.data.frame(X)
df_dup <- df[sample(nrow(df), 20,replace = TRUE), ]
Y <- as.stlpp(df_dup,L=easynet)
npoints(Y)
npoints(unique(Y))



Run the code above in your browser using DataLab