Package org.ddogleg.clustering.kmeans
Class InitializePlusPlus_MT<P>
java.lang.Object
org.ddogleg.clustering.kmeans.InitializePlusPlus<P>
org.ddogleg.clustering.kmeans.InitializePlusPlus_MT<P>
- All Implemented Interfaces:
InitializeKMeans<P>
Concurrent implementation of InitializePlusPlus
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new instance which has the same configuration and can be run in parallel.protected void
updateDistanceWithNewSeed
(LArrayAccessor<P> points, P seed) A new seed has been added and the distance from the seeds needs to be updatedMethods inherited from class org.ddogleg.clustering.kmeans.InitializePlusPlus
initialize, selectPointForNextSeed, selectSeeds
-
Constructor Details
-
InitializePlusPlus_MT
-
-
Method Details
-
newInstanceThread
Description copied from interface:InitializeKMeans
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 interfaceInitializeKMeans<P>
- Overrides:
newInstanceThread
in classInitializePlusPlus<P>
-
updateDistanceWithNewSeed
A new seed has been added and the distance from the seeds needs to be updated- Overrides:
updateDistanceWithNewSeed
in classInitializePlusPlus<P>
-