Interface Metric<T, D extends Comparable<? super D>>
- Type Parameters:
T- the type of pointsD- the type of distance
public interface Metric<T, D extends Comparable<? super D>>
A mathematical distance metric between two points.
- Author:
- Lee A. Christie
-
Method Summary
-
Method Details
-
distance
-
asHeuristic
Creates a heuristic function which takes any point and returns its istance to a predefined goal point.- Parameters:
goal- the goal to which the heuristic in aiming, not null.- Returns:
- a function which calculates the heuristic form any given point to the fixed goal
-