Find local minimum of a 3d distribution
find_local_min_3d(dist, localmin, r, Umax, expand = TRUE, first_called = TRUE)
An kde2d
distribution object.
Starting value of finding local minimum.
Searching (L1) radius.
The highest possible value of the potential function.
If the values in the range all equal to Umax
, expand the range or not?
Is this function first called by another function?
A list with two elements: U
, the potential value of the local minimum, and location
, the position of the local minimum.