public abstract class BaseClusteringStrategy extends java.lang.Object implements ClusteringStrategy, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowEmptyClusters |
protected java.lang.String |
distanceFunction |
protected java.lang.Integer |
initialClusterCount |
protected ClusteringAlgorithmCondition |
optimizationPhaseCondition |
protected ClusteringAlgorithmCondition |
terminationCondition |
protected ClusteringStrategyType |
type |
Modifier | Constructor and Description |
---|---|
protected |
BaseClusteringStrategy() |
protected |
BaseClusteringStrategy(ClusteringStrategyType type,
java.lang.Integer initialClusterCount,
java.lang.String distanceFunction,
boolean allowEmptyClusters) |
Modifier and Type | Method and Description |
---|---|
BaseClusteringStrategy |
endWhenDistributionVariationRateLessThan(double rate) |
BaseClusteringStrategy |
endWhenIterationCountEquals(int maxIterationCount) |
java.lang.String |
getDistanceFunction() |
java.lang.Integer |
getInitialClusterCount() |
ClusteringAlgorithmCondition |
getOptimizationPhaseCondition() |
ClusteringAlgorithmCondition |
getTerminationCondition() |
ClusteringStrategyType |
getType() |
boolean |
isAllowEmptyClusters() |
boolean |
isStrategyOfType(ClusteringStrategyType type) |
void |
setAllowEmptyClusters(boolean allowEmptyClusters) |
void |
setDistanceFunction(java.lang.String distanceFunction) |
void |
setInitialClusterCount(java.lang.Integer clusterCount) |
protected void |
setOptimizationPhaseCondition(ClusteringAlgorithmCondition optimizationPhaseCondition) |
protected void |
setTerminationCondition(ClusteringAlgorithmCondition terminationCondition) |
protected void |
setType(ClusteringStrategyType type) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isOptimizationApplicableNow, isOptimizationDefined
protected ClusteringStrategyType type
protected java.lang.Integer initialClusterCount
protected ClusteringAlgorithmCondition optimizationPhaseCondition
protected ClusteringAlgorithmCondition terminationCondition
protected java.lang.String distanceFunction
protected boolean allowEmptyClusters
protected BaseClusteringStrategy()
protected BaseClusteringStrategy(ClusteringStrategyType type, java.lang.Integer initialClusterCount, java.lang.String distanceFunction, boolean allowEmptyClusters)
public BaseClusteringStrategy endWhenIterationCountEquals(int maxIterationCount)
endWhenIterationCountEquals
in interface ClusteringStrategy
public BaseClusteringStrategy endWhenDistributionVariationRateLessThan(double rate)
endWhenDistributionVariationRateLessThan
in interface ClusteringStrategy
public boolean isStrategyOfType(ClusteringStrategyType type)
isStrategyOfType
in interface ClusteringStrategy
public java.lang.Integer getInitialClusterCount()
getInitialClusterCount
in interface ClusteringStrategy
public void setInitialClusterCount(java.lang.Integer clusterCount)
public java.lang.String getDistanceFunction()
getDistanceFunction
in interface ClusteringStrategy
public void setDistanceFunction(java.lang.String distanceFunction)
public boolean isAllowEmptyClusters()
isAllowEmptyClusters
in interface ClusteringStrategy
public void setAllowEmptyClusters(boolean allowEmptyClusters)
public ClusteringStrategyType getType()
getType
in interface ClusteringStrategy
protected void setType(ClusteringStrategyType type)
public ClusteringAlgorithmCondition getOptimizationPhaseCondition()
protected void setOptimizationPhaseCondition(ClusteringAlgorithmCondition optimizationPhaseCondition)
public ClusteringAlgorithmCondition getTerminationCondition()
getTerminationCondition
in interface ClusteringStrategy
protected void setTerminationCondition(ClusteringAlgorithmCondition terminationCondition)