|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.ObjectInstances
coser.datamodel.decisionsystem.RoughDecisionSystem
coser.datamodel.decisionsystem.CostSensitiveDecisionSystem
coser.datamodel.decisionsystem.NominalDecisionSystem
coser.datamodel.decisionsystem.TimeNominalDecisionSystem
public class TimeNominalDecisionSystem extends NominalDecisionSystem
Summary: Define methods for time-sensitive reduction. Data are already claimed in super-classes.
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.
Progress: the very beginning.
Written time: December 17, 2012.
Last modify time: December 25, 2012.
| 修饰符 和 类型 | 字段 和 描述 |
|---|---|
(专用软件包) double |
lambda
Lambda for weighted reduction. |
(专用软件包) boolean |
weighting
Weighting or not. |
| 从类 coser.datamodel.decisionsystem.NominalDecisionSystem 继承的字段 |
|---|
ATTRIBUTES_COMBINATIONS, BACKTRACK, EXPONENTIAL, reductMinimalSize |
| 构造函数 和 描述 |
|---|
TimeNominalDecisionSystem(Instances dataset)
Construct the decision system. |
TimeNominalDecisionSystem(Instances dataset,
int capacity)
Construct the decision system. |
TimeNominalDecisionSystem(Instances source,
int first,
int toCopy)
Construct the decision system. |
TimeNominalDecisionSystem(java.io.Reader reader)
Construct the decision system. |
TimeNominalDecisionSystem(java.lang.String name,
FastVector attInfo,
int capacity)
Construct the decision system. |
TimeNominalDecisionSystem(TimeNominalDecisionSystem paraDataset,
boolean[] paraSelectedAttributes)
Construct the decision system. |
| 修饰符 和 类型 | 方法 和 描述 |
|---|---|
int |
computeFeatureSubsetTime(boolean[] paraFeatureSubset)
Compute the time of a feature subset. |
int |
computeOptimalTimeCost()
Compute the optimal time-cost. |
int |
featureSubsetCompare(boolean[] paraFirstSubset,
boolean[] paraSecondSubset)
Compare two feature subsets with respect to test cost (money) and testing time. |
boolean |
isCurrentReductOptimal()
Is the current reduct optimal? |
static void |
main(java.lang.String[] args)
Only for testing. |
void |
readPartialOrderMatrix(java.lang.String paraFilename)
Read the partial order matrix from a text file. |
protected void |
sortByWaitingTime(int[] paraSequence)
Sort an index sequence according to the test-cost in a descending order. |
java.lang.String |
toString()
For toString(). |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
boolean weighting
double lambda
| 构造方法详细信息 |
|---|
public TimeNominalDecisionSystem(java.io.Reader reader)
throws java.io.IOException,
java.lang.Exception
java.io.IOExceptionjava.lang.Exception
public TimeNominalDecisionSystem(Instances dataset)
throws java.lang.Exception
java.lang.Exception
public TimeNominalDecisionSystem(Instances dataset,
int capacity)
throws java.lang.Exception
java.lang.Exception
public TimeNominalDecisionSystem(Instances source,
int first,
int toCopy)
throws java.lang.Exception
java.lang.Exception
public TimeNominalDecisionSystem(java.lang.String name,
FastVector attInfo,
int capacity)
throws java.lang.Exception
java.lang.Exception
public TimeNominalDecisionSystem(TimeNominalDecisionSystem paraDataset,
boolean[] paraSelectedAttributes)
throws java.lang.Exception
java.lang.Exception| 方法详细信息 |
|---|
protected void sortByWaitingTime(int[] paraSequence)
paraSequence - the given sequence. The sequence is changed in the method, and
the return value is not needed.
public boolean isCurrentReductOptimal()
throws java.lang.Exception
NominalDecisionSystem 中的 isCurrentReductOptimaljava.lang.Exception - if the reduct or the set of all reducts not computed yet.
public void readPartialOrderMatrix(java.lang.String paraFilename)
throws java.io.IOException,
java.lang.Exception
paraFilename - The filename of the partial order matrix.java.io.IOException - for file reading error.java.lang.Exception - for file format error.
public int featureSubsetCompare(boolean[] paraFirstSubset,
boolean[] paraSecondSubset)
throws java.lang.Exception
paraFirstSubset - the first subsetparaSecondSubset - the second subsetjava.lang.Exception
public int computeFeatureSubsetTime(boolean[] paraFeatureSubset)
throws java.lang.Exception
paraFeatureSubset - the feature subset. The length should be equal to |C|.java.lang.Exception
public int computeOptimalTimeCost()
throws java.lang.Exception
exception - if the set of all reduct is not obtained yet.java.lang.Exceptionpublic java.lang.String toString()
NominalDecisionSystem 中的 toStringpublic static void main(java.lang.String[] args)
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||