DistanceDomain

public interface DistanceDomain<M>

Interface that must be implemented by a distance metric to be used with the spatial operators and models of Moonlight.

Inheritors

Functions

Link copied to clipboard
public abstract boolean equalTo(M x, M y)
Tells whether the first distance is equivalent to the second
Link copied to clipboard
public abstract M infinity()
Maximal allowed distance
Link copied to clipboard
public abstract boolean less(M x, M y)
Tells whether the first distance is smaller than the second
Link copied to clipboard
public abstract boolean lessOrEqual(M x, M y)
Tells whether the first distance is smaller or equal to the second.
Link copied to clipboard
public M multiply(M x, int factor)
Method to combine the metric `x`, `factor` times
Link copied to clipboard
public abstract M sum(M x, M y)
Method to combine two distances
Link copied to clipboard
public abstract M zero()
Minimal allowed distance