Interface ComputeMeanClusters<P>

All Known Implementing Classes:
MeanArrayF64

public interface ComputeMeanClusters<P>
Abstract way to update the cluster mean values from a set of points which have been assigned to a single cluster.
  • Method Details

    • process

      void process(LArrayAccessor<P> points, DogArray_I32 assignments, FastAccess<P> clusters)
      Updates cluster means
      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

      ComputeMeanClusters<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.