
Find objective environmental resolution using the Nearest Neighbor Elbow Method
Source:R/find_env_resolution.R
find_env_resolution.RdCalculates an objective, data-driven grid resolution for environmental thinning. Instead of relying on user-defined quantiles, this function analyzes the 1D Nearest Neighbor (NN) distances for each environmental variable. It uses the geometric "elbow" method (point of maximum curvature) to identify the exact distance where dense artificial clustering transitions into natural data spacing.