I know there is an R spatstat function to generate a ppp (Poisson Point Process), but I'm working in python, and I am not clear what spatstat.ppp is doing behind the scenes.
If I generate a an array of ordered pairs of random x's and random y's (within the spatial extent), will that be (or how will it differ from) a ppp? Should the x's and y's be chosen based on a Poisson distribution (np.random.poisson)?
I've read the spatstat documentation on ppp and the wikipedia pages on Poisson point process and Poisson distribution, but I just have no knack for statistics. Is it the number of events that is random? Or where they fall in space?
Thanks for any help you can give.
(ps -- this problem is entirely spatial, there is no time dimension.)
spatstat
function in R. There's a package called "spatstat". It seems to have a function calledppp
(spatstat::ppp
), though (and a class called ppp). What other functions are you calling? Have you checked the spatstat vignettes or the code? $\endgroup$data.frame
is, and its purpose is analogous to a call todata.frame
or any other function to turn data into an object of a particular class. $\endgroup$