I have a data set with three columns X,Y and Z. There are several rows in the table. X and Y coordinates in each row is one location in XY space and Z is the height at that XY location. I want to create a 3x3 cluster at each XY location and calculate the average of 8 nearest neighbor points (excluding the center point). Then subtract Z height of the XY location in the center from the calculated average and if the difference is greater than the threshold (decided by user) then that XY location will be called an outlier.This will continue until all XY locations have been checked for outlier. Are there any built in functions in JMP that I can use? How can I script it in JSL? Also how are the edge coordinates handled? An example image is shown below. Any guidance will be highly appreciated.
