public class OptimisationStrategy extends BaseClusteringStrategy
Modifier and Type | Field and Description |
---|---|
static int |
defaultIterationCount |
allowEmptyClusters, distanceFunction, initialClusterCount, optimizationPhaseCondition, terminationCondition, type
Modifier | Constructor and Description |
---|---|
protected |
OptimisationStrategy() |
protected |
OptimisationStrategy(int initialClusterCount,
java.lang.String distanceFunction) |
Modifier and Type | Method and Description |
---|---|
double |
getClusteringOptimizationValue() |
boolean |
isClusteringOptimizationType(ClusteringOptimizationType type) |
boolean |
isOptimizationApplicableNow(IterationHistory iterationHistory) |
boolean |
isOptimizationDefined() |
OptimisationStrategy |
optimize(ClusteringOptimizationType type,
double value) |
OptimisationStrategy |
optimizeWhenIterationCountMultipleOf(int value) |
OptimisationStrategy |
optimizeWhenPointDistributionVariationRateLessThan(double rate) |
static OptimisationStrategy |
setup(int initialClusterCount,
java.lang.String distanceFunction) |
endWhenDistributionVariationRateLessThan, endWhenIterationCountEquals, getDistanceFunction, getInitialClusterCount, getOptimizationPhaseCondition, getTerminationCondition, getType, isAllowEmptyClusters, isStrategyOfType, setAllowEmptyClusters, setDistanceFunction, setInitialClusterCount, setOptimizationPhaseCondition, setTerminationCondition, setType
protected OptimisationStrategy()
protected OptimisationStrategy(int initialClusterCount, java.lang.String distanceFunction)
public static OptimisationStrategy setup(int initialClusterCount, java.lang.String distanceFunction)
public OptimisationStrategy optimize(ClusteringOptimizationType type, double value)
public OptimisationStrategy optimizeWhenIterationCountMultipleOf(int value)
public OptimisationStrategy optimizeWhenPointDistributionVariationRateLessThan(double rate)
public double getClusteringOptimizationValue()
public boolean isClusteringOptimizationType(ClusteringOptimizationType type)
public boolean isOptimizationDefined()
public boolean isOptimizationApplicableNow(IterationHistory iterationHistory)