Moore Neighborhood Finder
class MooreNeighborhoodFinder(val problemDefinition: ProblemDefinition, radius: Int = 1) : NeighborhoodFinderIfc(source)
A Moore neighborhood includes all points where the Chebyshev distance (also called L∞ distance) from the center is less than or equal to the radius. The Chebyshev distance is the maximum absolute difference across all dimensions. This function uses a direct iteration around a bounding box. By default, this implementation does not include the center point of the neighborhood and uses a radius of 1.
Parameters
problem Definition
the problem definition over which the neighborhood should be found.
radius
the radius for the neighborhood. The default is 1.