Package org.ddogleg.clustering
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 Summary
Modifier and TypeMethodDescriptionCreates a new instance which has the same configuration and can be run in parallel.void
process
(LArrayAccessor<P> points, DogArray_I32 assignments, FastAccess<P> clusters) Updates cluster means
-
Method Details
-
process
Updates cluster means- Parameters:
points
- (Input) access to point valuesassignments
- (Input) which cluster each point has been assigned toclusters
- (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.
-