nz.ac.waikato.mcennis.rat.graph.algorithm.reusablecores.distance
Interface DistanceFunction
- All Known Implementing Classes:
- ChebyshevDistance, CosineDistance, DotProductDistance, EuclideanDistance, JaccardDistance, ManhattanDistance, PearsonDistance, WeightedKLDDistance
public interface DistanceFunction
Interface abstracting distance functions. Existance of a distance between
all vectors can be assumed. No other assumptions about the distance
function should be assumed beyond existance (including symettry of distance measures) unless the
specific distance measure defines it.
distance
double distance(DataVector inst1,
DataVector inst2)
- Return the distance between the two given vectors as a double.
- Parameters:
inst1
- left data vectorinst2
- right data vector
- Returns:
- distance by a given metric