Class Ant
java.lang.Object
unifeat.featureSelection.wrapper.ACOBasedMethods.BasicAnt
unifeat.featureSelection.wrapper.ACOBasedMethods.OptimalACO.Ant
This java class is used to represent an ant in optimal ant colony
optimization (Optimal ACO) method.
- Author:
- Sina Tabakhi
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
Counts number of successive steps that an ant is not able to decrease the classification error rateFields inherited from class unifeat.featureSelection.wrapper.ACOBasedMethods.BasicAnt
featureSubset
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
This method returns the current count steps of the ant.This method returns the feasible features that can be added to the current solution of the ant.void
This method increases one step of the count steps of the ant.void
setCountSteps
(int countSteps) This method sets the count steps of the ant.Methods inherited from class unifeat.featureSelection.wrapper.ACOBasedMethods.BasicAnt
addFeature, emptyFeatureSubset, getFeatureSubset, getFeatureSubsetSize, getFitness, removeFeature, setFitness, toString
-
Field Details
-
countSteps
private int countStepsCounts number of successive steps that an ant is not able to decrease the classification error rate
-
-
Constructor Details
-
Ant
public Ant()Initializes the parameters
-
-
Method Details
-
getCountSteps
public int getCountSteps()This method returns the current count steps of the ant.- Returns:
- the current count steps of the ant
-
setCountSteps
public void setCountSteps(int countSteps) This method sets the count steps of the ant.- Parameters:
countSteps
- the input count steps
-
increaseCountSteps
public void increaseCountSteps()This method increases one step of the count steps of the ant. -
getFeasibleFeatureSet
This method returns the feasible features that can be added to the current solution of the ant.- Specified by:
getFeasibleFeatureSet
in classBasicAnt
- Returns:
- an array list of the feasible features
-