|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.ObjectInstances
coser.datamodel.decisionsystem.RoughDecisionSystem
coser.datamodel.decisionsystem.CostSensitiveDecisionSystem
coser.datamodel.decisionsystem.NominalDecisionSystem
coser.datamodel.decisionsystem.TimeNominalDecisionSystem
coser.datamodel.decisionsystem.TimeConstraintNominalDecisionSystem
public class TimeConstraintNominalDecisionSystem extends TimeNominalDecisionSystem
Summary: Time constraint nominal decision system.
Copyright: The source code and all documents are open and free. PLEASE keep this header while revising the program.
Organization: Lab of Granular Computing,
Zhangzhou Normal University, Fujian 363000, China.
Project: The cost-sensitive rough sets project.
Author: Zhongyi Sun
Progress: the very beginning.
Written time: January 12, 2013.
Last modify time: January 12, 2013.
| 修饰符 和 类型 | 字段 和 描述 |
|---|---|
(专用软件包) long[] |
exhaustiveSubreductResultArray
An array to store running information of exhaustive algorithm for sub-reduct. |
static int |
MAX_TESTS_FOR_EXHAUSTIVE
Maximal number of tests for exhaustive algorithms. |
(专用软件包) int |
optimalSubreductConsistency
|
(专用软件包) int |
optimalSubreductCost
|
(专用软件包) long[] |
optimalSubreductsArray
|
| 从类 coser.datamodel.decisionsystem.TimeNominalDecisionSystem 继承的字段 |
|---|
lambda, weighting |
| 从类 coser.datamodel.decisionsystem.NominalDecisionSystem 继承的字段 |
|---|
ATTRIBUTES_COMBINATIONS, BACKTRACK, EXPONENTIAL, reductMinimalSize |
| 构造函数 和 描述 |
|---|
TimeConstraintNominalDecisionSystem(Instances dataset)
Construct the decision system. |
TimeConstraintNominalDecisionSystem(Instances dataset,
int capacity)
Construct the decision system. |
TimeConstraintNominalDecisionSystem(Instances source,
int first,
int toCopy)
Construct the decision system. |
TimeConstraintNominalDecisionSystem(java.io.Reader reader)
Construct the decision system. |
TimeConstraintNominalDecisionSystem(java.lang.String name,
FastVector attInfo,
int capacity)
Construct the decision system. |
TimeConstraintNominalDecisionSystem(TimeConstraintNominalDecisionSystem paraDataset,
boolean[] paraSelectedAttributes)
Construct the decision system. |
| 修饰符 和 类型 | 方法 和 描述 |
|---|---|
protected long[] |
computeConstraintSatisfiedTimeSetsBacktrack(int paraConstraint)
/** Compute all test sets satisfying the time cost constraint using the backtrack approach. |
protected long[] |
computeConstraintSatisfiedTimeSetsBacktrack(int paraConstraint,
boolean[] paraAvailableAttributes)
Compute all test sets satisfying the time cost constraint using the backtrack approach. |
int |
computeOptimalTimeCost()
Find an optimal sub-reduct using the SESRA algorithm. |
java.lang.String |
constraintReductionSESRA(int paraConstraint)
Find an optimal sub-reduct using the SESRA algorithm. |
java.lang.String |
constraintReductionSESRA(int paraConstraint,
boolean[] paraAvailableAttributes)
Find an optimal sub-reduct using the SESRA algorithm. |
boolean |
constraintSatisfied(boolean[] paraSelectedTests,
int paraConstraint)
Judge whether or not the given test set satisfy the constraint. |
long[] |
getExhaustiveSubreductResults()
Get sub-reduct results (exhaustive algorithms). |
int |
getOptimalSubreductConsistency()
Get the optimal sub-reduct consistency. |
static void |
main(java.lang.String[] args)
Only for testing. |
protected long[] |
removeShortTestSets(long[] paraInitialTestSetArray)
Remove short test sets such that we do not have to compute their consistency. |
protected long[] |
removeShortTestSets(long[] paraInitialTestSetArray,
int paraNumberOfTestSets)
Remove short test sets such that we do not have to compute their consistency. |
protected long[] |
selectMaximalConsistencySubreducts(long[] paraSubreducts)
Select sub-reducts with the maximal consistency. |
java.lang.String |
toString()
For toString(). |
| 从类 coser.datamodel.decisionsystem.TimeNominalDecisionSystem 继承的方法 |
|---|
computeFeatureSubsetTime, featureSubsetCompare, isCurrentReductOptimal, readPartialOrderMatrix, sortByWaitingTime |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
public static final int MAX_TESTS_FOR_EXHAUSTIVE
int optimalSubreductConsistency
int optimalSubreductCost
long[] exhaustiveSubreductResultArray
long[] optimalSubreductsArray
| 构造方法详细信息 |
|---|
public TimeConstraintNominalDecisionSystem(java.io.Reader reader)
throws java.io.IOException,
java.lang.Exception
java.io.IOExceptionjava.lang.Exception
public TimeConstraintNominalDecisionSystem(Instances dataset)
throws java.lang.Exception
java.lang.Exception
public TimeConstraintNominalDecisionSystem(Instances dataset,
int capacity)
throws java.lang.Exception
java.lang.Exception
public TimeConstraintNominalDecisionSystem(Instances source,
int first,
int toCopy)
throws java.lang.Exception
java.lang.Exception
public TimeConstraintNominalDecisionSystem(java.lang.String name,
FastVector attInfo,
int capacity)
throws java.lang.Exception
java.lang.Exception
public TimeConstraintNominalDecisionSystem(TimeConstraintNominalDecisionSystem paraDataset,
boolean[] paraSelectedAttributes)
throws java.lang.Exception
java.lang.Exception| 方法详细信息 |
|---|
protected long[] computeConstraintSatisfiedTimeSetsBacktrack(int paraConstraint)
throws java.lang.Exception
paraConstraint - the time cost upper bound.java.lang.Exception
protected long[] computeConstraintSatisfiedTimeSetsBacktrack(int paraConstraint,
boolean[] paraAvailableAttributes)
throws java.lang.Exception
paraConstraint - the test cost upper bound.paraAvailableAttributes - which tests are available.java.lang.Exception
public java.lang.String constraintReductionSESRA(int paraConstraint)
throws java.lang.Exception
paraConstraint - the time cost upper bound.java.lang.Exception
public int computeOptimalTimeCost()
throws java.lang.Exception
TimeNominalDecisionSystem 中的 computeOptimalTimeCostjava.lang.Exception
public java.lang.String constraintReductionSESRA(int paraConstraint,
boolean[] paraAvailableAttributes)
throws java.lang.Exception
paraConstraint - the test cost upper bound.paraAvailableAttributes - which tests are available.java.lang.Exception
public int getOptimalSubreductConsistency()
throws java.lang.Exception
java.lang.Exception
protected long[] removeShortTestSets(long[] paraInitialTestSetArray)
throws java.lang.Exception
paraInitialTestSetArray - test sets are representated by integers. It must be sorted in
an ascending order.java.lang.Exception
protected long[] removeShortTestSets(long[] paraInitialTestSetArray,
int paraNumberOfTestSets)
throws java.lang.Exception
paraInitialTestSetArray - test sets are representated by integers. It must be sorted in
an ascending order.paraNumberOfTestSets - the effective number of elements in paraInitialTestSetArray.java.lang.Exception#constraintReductionSESRAstar(int)
protected long[] selectMaximalConsistencySubreducts(long[] paraSubreducts)
throws java.lang.Exception
paraSubreducts - test sets are representated by long. It must be sorted in an
ascending order.java.lang.ExceptionconstraintReductionSESRA(int),
#constraintReductionSESRAstar(int)public long[] getExhaustiveSubreductResults()
public boolean constraintSatisfied(boolean[] paraSelectedTests,
int paraConstraint)
throws java.lang.Exception
paraSelectedTests - Selected tests represented by a boolean array.paraConstraint - The constraint.java.lang.Exception - if it is thrown by computeTestCost().public java.lang.String toString()
TimeNominalDecisionSystem 中的 toStringpublic static void main(java.lang.String[] args)
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||