Package org.ddogleg.nn.alg
Interface KdTreeDistance<P>
- All Known Implementing Classes:
KdTreeEuclideanSq_F64
,KdTreeEuclideanSq_U8
public interface KdTreeDistance<P>
Computes the distance between two points. Each point is a tuple.
-
Method Summary
-
Method Details
-
distance
Computes the distance between the two input points- Parameters:
a
- pointb
- point- Returns:
- distance
-
valueAt
Returns the value of an element in the point- Parameters:
point
- (Input) the pointindex
- Which element in the point is to be read- Returns:
- The value of the element in the point.
-
length
int length()Number of elements in the point
-