Find local minimum of a 2d distribution

find_local_min_2d(dist, localmin, r)

Arguments

dist

An density distribution object.

localmin

Starting value of finding local minimum.

r

Searching radius.

Value

A list with two elements: U, the potential value of the local minimum, and location, the position of the local minimum.