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
-
Method Summary
Modifier and TypeMethodDescriptionComputeMeanClusters<double[]>
Creates a new instance which has the same configuration and can be run in parallel.void
process
(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:ComputeMeanClusters
Updates cluster means- Specified by:
process
in 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: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 interfaceComputeMeanClusters<double[]>
-