I am writing a Neural Network code to generate point patterns. In the loss function of my model, I want to use Kest, pcf, and Fest functions available in the spatstat package. if I use Fest as follows
F(r)=(1/m)*sum(1{d(u,x)<=r})
(the above equation is equation 8.33 on page 286 of "Spatial point pattern methodology and application with R" book, where m is the total number of points within the window, u represents pixels inside the window, x represents the points of the point pattern, r is a distance, and d is the minimum distance of a pixel to all the points of the point pattern)
then I cannot get backpropagate because of losing the graph due to comparison (i.e., assigning 1 to d(u,x)<=r). Is it acceptable from the statistical point of view if I write Fest as follows
F(r)=(1/m)*sum(max(r-d,0))
m
? What isx
? What isu
? And what aboutd
in the last equation? Finally, it may be that this question is better suited for the site stats.stackexchange.com - Ege Rubak