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 Type
    Method
    Description
    double
    distance(P a, P b)
    Computes the distance between the two input points
    Creates a new instance which has the same configuration and can be run in parallel.
  • Method Details

    • distance

      double distance(P a, P b)
      Computes the distance between the two input points
      Parameters:
      a - point
      b - 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.