Class MeanArrayF64

java.lang.Object
org.ddogleg.clustering.misc.MeanArrayF64
All Implemented Interfaces:
ComputeMeanClusters<double[]>

public class MeanArrayF64
extends Object
implements ComputeMeanClusters<double[]>
Computes the mean for points composed of double[]
  • Constructor Details

    • MeanArrayF64

      public MeanArrayF64​(int length)
  • Method Details

    • process

      public void process​(LArrayAccessor<double[]> points, DogArray_I32 assignments, FastAccess<double[]> clusters)
      Description copied from interface: ComputeMeanClusters
      Updates cluster means
      Specified by:
      process in interface ComputeMeanClusters<double[]>
      Parameters:
      points - (Input) access to point values
      assignments - (Input) which cluster each point has been assigned to
      clusters - (Output) Cluster means which are to be updated.
    • newInstanceThread

      public ComputeMeanClusters<double[]> newInstanceThread()
      Description copied from interface: ComputeMeanClusters
      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 ComputeMeanClusters<double[]>