Package org.ddogleg.clustering.misc
Class MeanArrayF64
java.lang.Object
org.ddogleg.clustering.misc.MeanArrayF64
- All Implemented Interfaces:
ComputeMeanClusters<double[]>
Computes the mean for points composed of double[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionComputeMeanClusters<double[]>Creates a new instance which has the same configuration and can be run in parallel.voidprocess(LArrayAccessor<double[]> points, DogArray_I32 assignments, FastAccess<double[]> clusters) Updates cluster means
-
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:ComputeMeanClustersUpdates cluster means- Specified by:
processin interfaceComputeMeanClusters<double[]>- 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
Description copied from interface:ComputeMeanClustersCreates 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:
newInstanceThreadin interfaceComputeMeanClusters<double[]>
-