|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.ObjectInstances
coser.datamodel.decisionsystem.RoughDecisionSystem
coser.datamodel.decisionsystem.CostSensitiveDecisionSystem
coser.datamodel.decisionsystem.NominalDecisionSystem
coser.datamodel.decisionsystem.TestCostNominalDecisionSystem
coser.datamodel.decisionsystem.TestCostNominalDecisionSystemACO
public class TestCostNominalDecisionSystemACO extends TestCostNominalDecisionSystem
Project: The cost-sensitive rough sets project.
Summary: The Test Cost Sensitive Decision System with Ant Colony Optimization
Author: Zilong Xu E-main: xzl-wy163@163.com
Copyright: The source code and all documents are open and free. PLEASE keep
this header while revising the program. Organizaion: Lab of Granular Computing, Zhangzhou Normal
University, Fujian 363000, China.
Progress: Test-cost-sensitive attribute reduction based on Ant Colony
Optimization implemented.
Written time: February, 2012
Last modify time: December 26, 2012
| 修饰符 和 类型 | 字段 和 描述 |
|---|---|
double |
alpha
The exponent of pheromone. |
Ant[] |
ants
The Ant Colony |
int |
antsCounts
The ants quantity. |
double |
beta
The exponent of test cost. |
int |
currentAntNo
The number of each ant. |
TestCostNominalDecisionSystem |
currnetDecisionSystem
The current TestCostConstraintDecisionSystem |
double |
exceedingFactor
The exceeding factor |
int |
minTestCost
The minimal total test cost obtained by this algorithm |
(专用软件包) boolean[] |
minTestCostReduct
The array of minimal test cost reduction. |
int |
optimalTestCost
The optimal test cost |
double[][] |
pheromoneMatrix
The matrix of pheromone. |
(专用软件包) int |
posAllConditions
The number of positive region. |
(专用软件包) java.util.Random |
ran
Random numbers generator |
(专用软件包) long |
reductionEndTime
The end time of reduction |
(专用软件包) long |
reductionStartTime
The starting time of reduction |
(专用软件包) static int |
stepsOfACO
The total steps of ants. |
boolean |
workState
The work state of ant colony |
| 从类 coser.datamodel.decisionsystem.TestCostNominalDecisionSystem 继承的字段 |
|---|
lambda, weighting |
| 从类 coser.datamodel.decisionsystem.NominalDecisionSystem 继承的字段 |
|---|
ATTRIBUTES_COMBINATIONS, BACKTRACK, EXPONENTIAL, reductMinimalSize |
| 构造函数 和 描述 |
|---|
TestCostNominalDecisionSystemACO(TestCostNominalDecisionSystem paraDecisionSystem)
The Construct Method 1 |
TestCostNominalDecisionSystemACO(TestCostNominalDecisionSystem paraDecisionSystem,
int paraAntsCounts,
double paraAlpha,
double paraBeta)
The Construct Method 2 |
| 修饰符 和 类型 | 方法 和 描述 |
|---|---|
double |
exceedingFactor()
Compute and print the exceeding factor. |
java.lang.String |
getResult()
Get the results string |
void |
initialize()
Initialize |
void |
minimalTestCost()
Select the subset with minimal test cost among subsets obtained by last k ants as the final result to output. |
void |
minimalTestCostReductACO()
The Ant Colony Optimization to minimal test cost reduction problem. |
boolean |
optimalTestCost()
Return if the minimal test cost. |
void |
pheromoneRefresh(Ant paraAnt)
Refresh pheromone of each edge. |
void |
setAlphaValue(double paraAlpha)
Set the parameter alpha. |
void |
setAntCounts(int paraAntCounts)
Set the number of ant |
void |
setBetaValue(double paraBeta)
Set the parameter beta. |
| 从类 coser.datamodel.decisionsystem.TestCostNominalDecisionSystem 继承的方法 |
|---|
computeOptimalReductBacktrack, entropyBasedLambdaWeightedReduction, isCurrentReductOptimal, optimalReductBacktrack, removeRedundantAttributes, setLambda, setWeighting, sortByTestCost, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
public TestCostNominalDecisionSystem currnetDecisionSystem
public Ant[] ants
public int antsCounts
public int currentAntNo
public double[][] pheromoneMatrix
public double alpha
public double beta
public int minTestCost
public boolean workState
int posAllConditions
java.util.Random ran
public int optimalTestCost
public double exceedingFactor
static int stepsOfACO
boolean[] minTestCostReduct
long reductionStartTime
long reductionEndTime
| 构造方法详细信息 |
|---|
public TestCostNominalDecisionSystemACO(TestCostNominalDecisionSystem paraDecisionSystem)
throws java.io.IOException,
java.lang.Exception
java.io.IOExceptionjava.lang.Exception
public TestCostNominalDecisionSystemACO(TestCostNominalDecisionSystem paraDecisionSystem,
int paraAntsCounts,
double paraAlpha,
double paraBeta)
throws java.io.IOException,
java.lang.Exception
java.io.IOExceptionjava.lang.Exception| 方法详细信息 |
|---|
public void initialize()
public void minimalTestCostReductACO()
public void pheromoneRefresh(Ant paraAnt)
public void minimalTestCost()
public boolean optimalTestCost()
public double exceedingFactor()
public void setAlphaValue(double paraAlpha)
paraAlpha - The exponent of the pheromone in the heuristic function.public void setBetaValue(double paraBeta)
paraBeta - The expoent of the test cost in heuristic function.public void setAntCounts(int paraAntCounts)
paraAntCounts - The number of ants in the ant colony.public java.lang.String getResult()
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||