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

View source: R/unique.stlpp.R

unique.stlppR Documentation

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

Description

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

Usage

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

Arguments

x

a realisation of a spatio-temporal point processes on a linear networks.

...

arguments for unique.

Details

This function calculates the inhomogeneous pair correlation function for a spatio-temporal point processes on a linear network.

Value

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

Author(s)

Mehdi Moradi <m2.moradi@yahoo.com>

References

Moradi, M.M. and Mateu, J. (2019). First and second-order characteristics of spatio-temporal point processes on linear networks. Journal of Computational and Graphical Statistics. In press.

See Also

unique

Examples

  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))

stlnpp documentation built on Nov. 11, 2022, 9:11 a.m.