loess_optscale function

determine optimal spatial data analysis scale