search for: kinhom

Displaying 2 results from an estimated 2 matches for "kinhom".

2006 Aug 21
1
Creating a pixel image
I am trying to create a pixel image from the marks of a marked spatial point pattern for use with the Kinhom function in the spatstat library and am having some difficulty. Is there a way to create such an object using x-y coordinates and values at those coordinates? Many Thanks, Michael Lawton
2006 Apr 18
2
Unfound objects in function
....ppp (data)) stop ("data must be a point process object") i <- 0.1 diff <- 1 smo <- 1 while (diff > 0) { olddiff <- diff oldsmo <- smo smo <- density.ppp (data, sigma = 2 * i, edge = edge) lambda <- smo[data] Ki <- Kinhom (data[,data$window], lambda = lambda, r = seq (0, max.r, length = 100), correction = "trans") diff <- sum (Ki$theo - Ki$trans) i <- i + 0.1 if (i > max.r) stop ("no suitable kernel found within 0.2 to max.r") } if (abs (olddiff) > abs (diff)...