public final class KMeansConfig
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
KMeansConfig() |
Modifier and Type | Method and Description |
---|---|
KMeansConfig |
duplicate()
Make duplicate of this object.
|
int |
getNumberOfClusters() |
int |
getRandomizationSeed() |
double |
getTolerance()
Return tolerance used to determine cluster centroid distance.
|
boolean |
isClusterAnimationEnabled()
Return
true if when an animation illustrating cluster optimization is
enabled. |
boolean |
isPrintTraceEnabled()
Return
true if a trace is printed to the ImageJ's Result window. |
boolean |
isRandomizationSeedEnabled()
If
true , random number generator will be initialized with a
randomizationSeed . |
void |
setClusterAnimationEnabled(boolean clusterAnimationEnabled) |
void |
setNumberOfClusters(int numberOfClusters) |
void |
setPrintTraceEnabled(boolean printTraceEnabled) |
void |
setRandomizationSeed(int randomizationSeed) |
void |
setRandomizationSeedEnabled(boolean randomizationSeedEnabled) |
void |
setTolerance(float tolerance) |
public int getRandomizationSeed()
public void setRandomizationSeed(int randomizationSeed)
public boolean isRandomizationSeedEnabled()
true
, random number generator will be initialized with a
randomizationSeed
. If false
random number generator will be
initialized using 'current' time.true
when randomization seed is enabled.getRandomizationSeed()
public void setRandomizationSeedEnabled(boolean randomizationSeedEnabled)
public int getNumberOfClusters()
public void setNumberOfClusters(int numberOfClusters)
public double getTolerance()
public void setTolerance(float tolerance)
public boolean isClusterAnimationEnabled()
true
if when an animation illustrating cluster optimization is
enabled.true
when cluster animation is enabled.public void setClusterAnimationEnabled(boolean clusterAnimationEnabled)
public boolean isPrintTraceEnabled()
true
if a trace is printed to the ImageJ's Result window.true
when printing of trace is enabled.public void setPrintTraceEnabled(boolean printTraceEnabled)
public KMeansConfig duplicate()
Object.clone()
method.