Count_pts: Counts points in a window

Description Usage Arguments Value Author(s) See Also Examples

View source: R/normmix.R

Description

This function counts the number of points from a point pattern within a specified window.

For examples see

http://faculty.missouri.edu/~micheasa/sppmix/sppmix_all_examples.html#Count_pts

Usage

1
Count_pts(pp, win)

Arguments

pp

Object of class sppmix or ppp.

win

The window of observation as an object of class owin, defining the window of observation.

Value

An integer representing the number of points from pp within the window win.

Author(s)

Sakis Micheas

See Also

rsppmix, rmixsurf, plotmix_2d, square, owin

Examples

1
2
3
4
5
6
7
8
9
truemix_surf=rmixsurf(m = 3,lambda=100, xlim=c(-5,5),ylim=c(-5,5))
genPP=rsppmix(truemix_surf)
plotmix_2d(truemix_surf,genPP)
Count_pts(genPP,spatstat::square(1))
Count_pts(genPP,spatstat::square(2))
Count_pts(genPP,spatstat::square(3))
Count_pts(genPP,spatstat::square(4))
Count_pts(genPP,spatstat::square(5))
Count_pts(genPP,spatstat::owin(c(-5,5),c(-5,5)))

sppmix documentation built on Jan. 13, 2021, 10:04 p.m.