DistanceStructure

public interface DistanceStructure<E, M>

This interface abstracts the computation of the distance for spatial algorithms.

Inheritors

Functions

Link copied to clipboard
public abstract boolean areWithinBounds(int from, int to)
Helper method, might be preferable to the combination of isWithinBounds(getDistance(from, to)), if it makes sense for the current distance structure.
Link copied to clipboard
public Array<int> getBoundingBox(int i)
Link copied to clipboard
public abstract M getDistance(int from, int to)
Method to retrieve the distance between the two locations.
Link copied to clipboard
public abstract DistanceDomain<M> getDistanceDomain()
Link copied to clipboard
public abstract Function<E, M> getDistanceFunction()
Link copied to clipboard
public abstract SpatialModel<E> getModel()
Link copied to clipboard
public Array<int> getNeighbourhood(int i)
Link copied to clipboard
public abstract boolean isWithinBounds(M d)
Method to assess whether one location is within the bounds of the spatial structure