|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.ObjectInstances
coser.datamodel.informationsystem.RoughInformationSystem
coser.datamodel.informationsystem.BooleanInformationSystem
public class BooleanInformationSystem extends RoughInformationSystem
Summary: Information system with only boolean values.
Author: Fan Min minfanphd@163.com
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: almost done.
Written time: April 12, 2012.
Last modify time: April 12, 2012.
| 修饰符 和 类型 | 字段 和 描述 |
|---|---|
(专用软件包) boolean[][] |
relation
The relation represented by boolean matrix. |
| 构造函数 和 描述 |
|---|
BooleanInformationSystem(BooleanInformationSystem paraDataset,
boolean[] paraSelectedAttributes)
Construct the decision system. |
BooleanInformationSystem(Instances paraDataset)
Construct the decision system. |
BooleanInformationSystem(Instances paraDataset,
int paraCapacity)
Construct the decision system. |
BooleanInformationSystem(Instances paraSource,
int paraFirst,
int paraToCopy)
Construct the decision system. |
BooleanInformationSystem(NominalInformationSystem paraFirstSet,
NominalInformationSystem paraSecondSet,
NominalInformationSystem paraThirdSet)
Construct the decision system. |
BooleanInformationSystem(java.io.Reader paraReader)
Construct the decision system. |
BooleanInformationSystem(java.lang.String paraName,
FastVector paraAttInfo,
int paraCapacity)
Construct the decision system. |
| 修饰符 和 类型 | 方法 和 描述 |
|---|---|
double |
computeSourceConfidenceForPartialMatch(int[] paraSource,
int[] paraTarget,
double paraTargetConfidenceThreshold)
Compute the source confidence for output. |
double |
computeTargetConfidenceForRightPartialMatch(int[] paraSource,
int[] paraTarget)
Compute the target confidence for right-hand side partial match. |
void |
extendRelation(int paraTimes)
Extend the relation to cope with the extend of the entity. |
boolean[][] |
getRelationMatrix()
Construct a boolean information system from a boolean matrix. |
boolean |
inRelation(int[] paraSource,
int[] paraTarget)
Check whether or not the given indices is in the current relation $R$. |
boolean |
inRelationWithSourceConfidence(int[] paraSource,
int[] paraTarget,
double paraSourceConfidenceThreshold)
Check whether or not the degree of source confidence exceeds the given threshold. |
boolean |
inRelationWithTargetConfidence(int[] paraSource,
int[] paraTarget,
double paraTargetConfidenceThreshold)
Check whether or not the degree of target confidence exceeds the given threshold. |
int[] |
lowerApproximation(int[] paraX)
Lower approximation. |
static void |
main(java.lang.String[] args)
Test information entopy. |
int[] |
reverseLowerApproximation(int[] paraY)
Reverse lower approximation. |
int[] |
reverseLowerApproximation(int[] paraY,
double paraBeta)
Reverse lower approximation. |
boolean |
sourceConfidenceSatisfiedForPartialMatch(int[] paraSource,
int[] paraTarget,
double paraSourceConfidenceThreshold,
double paraTargetConfidenceThreshold)
Check if the source confidence threshold is met. |
boolean |
targetConfidenceSatisfiedForPartialMatch(int[] paraSource,
int[] paraTarget,
double paraSourceConfidenceThreshold,
double paraTargetConfidenceThreshold)
Check the source confidence threshold is met. |
java.lang.String |
toString()
For toString(). |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
boolean[][] relation
| 构造方法详细信息 |
|---|
public BooleanInformationSystem(java.io.Reader paraReader)
throws java.io.IOException,
java.lang.Exception
paraReader - the given reader, often with the form of a file reader. We can
generate a FileReader given an .arff filename.java.io.IOExceptionjava.lang.Exception
public BooleanInformationSystem(Instances paraDataset)
throws java.lang.Exception
java.lang.Exception
public BooleanInformationSystem(Instances paraDataset,
int paraCapacity)
throws java.lang.Exception
java.lang.Exception
public BooleanInformationSystem(Instances paraSource,
int paraFirst,
int paraToCopy)
throws java.lang.Exception
java.lang.Exception
public BooleanInformationSystem(java.lang.String paraName,
FastVector paraAttInfo,
int paraCapacity)
throws java.lang.Exception
java.lang.Exception
public BooleanInformationSystem(BooleanInformationSystem paraDataset,
boolean[] paraSelectedAttributes)
throws java.lang.Exception
java.lang.Exception
public BooleanInformationSystem(NominalInformationSystem paraFirstSet,
NominalInformationSystem paraSecondSet,
NominalInformationSystem paraThirdSet)
throws java.lang.Exception
paraFirstSet - the first set, e.g., studentparaSecondSet - the second set, e.g., courseparaThirdSet - the relation, e.g., student-coursejava.lang.Exception| 方法详细信息 |
|---|
public boolean[][] getRelationMatrix()
public int[] lowerApproximation(int[] paraX)
paraX - the source object set, a subset of the first set.public int[] reverseLowerApproximation(int[] paraY)
paraY - the target object set, a subset of the second set.
public int[] reverseLowerApproximation(int[] paraY,
double paraBeta)
paraY - the target object set, a subset of the second set.paraBeta - the parameter beta for approximation.
public boolean inRelation(int[] paraSource,
int[] paraTarget)
throws java.lang.Exception
paraSource - $X \subseteq U$.paraTarget - $Y \subseteq V$.java.lang.Exception
public boolean inRelationWithSourceConfidence(int[] paraSource,
int[] paraTarget,
double paraSourceConfidenceThreshold)
throws java.lang.Exception
paraSource - $X \subseteq U$.paraTarget - $Y \subseteq V$.paraSourceConfidenceThreshold - the threshold of the source confidence, sconfidencejava.lang.Exception
public boolean sourceConfidenceSatisfiedForPartialMatch(int[] paraSource,
int[] paraTarget,
double paraSourceConfidenceThreshold,
double paraTargetConfidenceThreshold)
throws java.lang.Exception
paraSource - $X \subseteq U$.paraTarget - $Y \subseteq V$.paraSourceConfidenceThreshold - the threshold of the source confidence, sconfidenceparaTargetConfidenceThreshold - the threshold of the target confidence, tconfidencejava.lang.Exception
public double computeSourceConfidenceForPartialMatch(int[] paraSource,
int[] paraTarget,
double paraTargetConfidenceThreshold)
throws java.lang.Exception
paraSource - $X \subseteq U$.paraTarget - $Y \subseteq V$.paraTargetConfidenceThreshold - the threshold of the target confidence, tconfidencejava.lang.ExceptionsourceConfidenceSatisfiedForPartialMatch(in[], int[], double,
double)
public boolean inRelationWithTargetConfidence(int[] paraSource,
int[] paraTarget,
double paraTargetConfidenceThreshold)
throws java.lang.Exception
paraSource - $X \subseteq U$.paraTarget - $Y \subseteq V$.paraTargetConfidenceThreshold - the threshold of the target confidence, tconfidencejava.lang.Exception
public double computeTargetConfidenceForRightPartialMatch(int[] paraSource,
int[] paraTarget)
throws java.lang.Exception
paraSource - $X \subseteq U$.paraTarget - $Y \subseteq V$.java.lang.Exception
public boolean targetConfidenceSatisfiedForPartialMatch(int[] paraSource,
int[] paraTarget,
double paraSourceConfidenceThreshold,
double paraTargetConfidenceThreshold)
throws java.lang.Exception
paraSource - $X \subseteq U$.paraTarget - $Y \subseteq V$.paraSourceConfidenceThreshold - the threshold of the source confidence, sconfidenceparaTargetConfidenceThreshold - the threshold of the target confidence, tconfidencejava.lang.Exceptionpublic void extendRelation(int paraTimes)
paraTimes - How many times does we need to extend. It should be greater
than 1 since 1 stands not extension.public java.lang.String toString()
RoughInformationSystem 中的 toStringpublic static void main(java.lang.String[] args)
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||