PairDistance

public class PairDistance<D1, D2> implements DistanceDomain<M>

Constructors

Link copied to clipboard
public void PairDistance(DistanceDomain<D1> firstDomain, DistanceDomain<D2> secondDomain)

Functions

Link copied to clipboard
public boolean equalTo(Pair<D1, D2> x, Pair<D1, D2> y)
Tells whether the first distance is equivalent to the second
Link copied to clipboard
public Pair<D1, D2> infinity()
Maximal allowed distance
Link copied to clipboard
public boolean less(Pair<D1, D2> x, Pair<D1, D2> y)
Tells whether the first distance is smaller than the second
Link copied to clipboard
public boolean lessOrEqual(Pair<D1, D2> x, Pair<D1, D2> 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 Pair<D1, D2> sum(Pair<D1, D2> x, Pair<D1, D2> y)
Method to combine two distances
Link copied to clipboard
public Pair<D1, D2> zero()
Minimal allowed distance