Package org.ddogleg.clustering
Interface PointDistance<P>
- All Known Implementing Classes:
EuclideanSqArrayF64
public interface PointDistance<P>
Computes the distance between two points. Each point is a tuple.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Computes the distance between the two input pointsCreates a new instance which has the same configuration and can be run in parallel.
-
Method Details
-
distance
Computes the distance between the two input points- Parameters:
a
- pointb
- point- Returns:
- distance
-
newInstanceThread
PointDistance<P> newInstanceThread()Creates a new instance which has the same configuration and can be run in parallel. Some components can be shared as long as they are read only and thread safe.
-