Class EuclideanSqArrayF64

java.lang.Object
org.ddogleg.clustering.misc.EuclideanSqArrayF64
All Implemented Interfaces:
Serializable, PointDistance<double[]>

public class EuclideanSqArrayF64 extends Object implements PointDistance<double[]>, Serializable
Returns Euclidean distance squared for double[] points.
See Also:
  • Constructor Details

    • EuclideanSqArrayF64

      public EuclideanSqArrayF64(int arrayLength)
  • Method Details

    • distance

      public double distance(double[] a, double[] b)
      Description copied from interface: PointDistance
      Computes the distance between the two input points
      Specified by:
      distance in interface PointDistance<double[]>
      Parameters:
      a - point
      b - point
      Returns:
      distance
    • newInstanceThread

      public PointDistance<double[]> newInstanceThread()
      Description copied from interface: PointDistance
      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.
      Specified by:
      newInstanceThread in interface PointDistance<double[]>