|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.ObjectInstances
coser.datamodel.informationsystem.RoughInformationSystem
coser.datamodel.informationsystem.NominalInformationSystem
public class NominalInformationSystem extends RoughInformationSystem
Summary: Information system with only nominal 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: Half done.
Written time: April 12, 2012.
Last modify time: July 4, 2012.
| 修饰符 和 类型 | 字段 和 描述 |
|---|---|
static int |
APRIORI
The apriori algorithm. |
(专用软件包) boolean[][] |
conceptsRelationshipMatrix
Who is who's sub-concept (subset). |
static int |
FPGROWTH
The FP-growth algorithm. |
(专用软件包) Concept[] |
frequentConcepts
All frequent concepts. |
(专用软件包) Concept[][] |
frequentConceptsByLength
Frequent concepts of different length. |
(专用软件包) int[][] |
frequentConceptsExtensionInInteger
The extension of frequent concepts. |
(专用软件包) int[] |
frequentConceptsSizes
The number of frequent concepts for respective length. |
static int |
MAX_CONCEPT_LENGTH
The maximal length of a concept. |
static int |
MAX_CONCEPTS
The maximal number of concepts/itemsets. |
(专用软件包) int |
maximalConceptLength
Frequent concept maximal length. |
(专用软件包) int |
totalAttributeValues
The total number of attribute values. |
| 构造函数 和 描述 |
|---|
NominalInformationSystem(Instances paraDataset)
Construct the decision system. |
NominalInformationSystem(Instances paraDataset,
int paraCapacity)
Construct the decision system. |
NominalInformationSystem(Instances paraSource,
int paraFirst,
int paraToCopy)
Construct the decision system. |
NominalInformationSystem(NominalInformationSystem paraDataset,
boolean[] paraSelectedAttributes)
Construct the decision system. |
NominalInformationSystem(java.io.Reader paraReader)
Construct the decision system. |
NominalInformationSystem(java.lang.String paraName,
FastVector paraAttInfo,
int paraCapacity)
Construct the decision system. |
| 修饰符 和 类型 | 方法 和 描述 |
|---|---|
boolean |
adjustID(Attribute paraID)
Adjust the information system to remove objects without the given ID. |
java.lang.String |
allFrequentConceptsToString()
Convert all concepts to string for display. |
protected Concept[] |
aprioriGeneration(int paraLevel)
Generate frequent itemsets of the given length. |
Concept[] |
computeFrequentConcepts(double paraSupportThreshold,
int paraAlgorithm)
Mine frequent concepts. |
protected Concept[] |
computeFrequentConceptsApriori(double paraSupportThreshold)
Mine frequent concepts using the Apriori algorithm. |
protected int[][] |
computeFrequentConceptsExtension()
Compute frequent concepts extension through copying frequent concepts. |
protected Concept[] |
computeFrequentConceptsFpgrowth(double paraSupportThreshold)
Mine frequent concepts using the FP-growth algorithm. |
protected Concept[] |
computeLength1FrequentConcepts(double paraSupportThreshold)
Compute length-1 frequent itemsets. |
void |
deleteAttributeAt(int paraIndex)
While deleting attribute, reset the scaled attributes. |
boolean[] |
extensionInBooleanArray(Concept paraConcept)
The extension of a concept. |
int[] |
extensionInIntegerArray(Concept paraConcept)
The extension of a concept in integer array. |
int[][] |
getFrequentConceptsExtension()
Get the frequent concepts extension an int two-dimensional array (not a matrix). |
static void |
main(java.lang.String[] args)
Test incrementalJoin. |
protected Concept[] |
removeInfrequentConcepts(Concept[] paraConcepts,
double paraSupportThreshold)
Remove infrequent concepts. |
void |
setScaled(boolean paraScaled)
Set the variable scaled. |
java.lang.String |
toString()
For toString(). |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
public static final int MAX_CONCEPTS
public static final int MAX_CONCEPT_LENGTH
int totalAttributeValues
Concept[] frequentConcepts
boolean[][] conceptsRelationshipMatrix
int[][] frequentConceptsExtensionInInteger
Concept[][] frequentConceptsByLength
int[] frequentConceptsSizes
int maximalConceptLength
public static final int APRIORI
public static final int FPGROWTH
| 构造方法详细信息 |
|---|
public NominalInformationSystem(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 NominalInformationSystem(Instances paraDataset)
throws java.lang.Exception
java.lang.Exception
public NominalInformationSystem(Instances paraDataset,
int paraCapacity)
throws java.lang.Exception
java.lang.Exception
public NominalInformationSystem(Instances paraSource,
int paraFirst,
int paraToCopy)
throws java.lang.Exception
java.lang.Exception
public NominalInformationSystem(java.lang.String paraName,
FastVector paraAttInfo,
int paraCapacity)
throws java.lang.Exception
java.lang.Exception
public NominalInformationSystem(NominalInformationSystem paraDataset,
boolean[] paraSelectedAttributes)
throws java.lang.Exception
java.lang.Exception| 方法详细信息 |
|---|
public boolean adjustID(Attribute paraID)
throws java.lang.Exception
paraID - the given set of IDjava.lang.Exception - if it cannot be adjustedpublic void setScaled(boolean paraScaled)
paraScaled - Whether or not scale.public boolean[] extensionInBooleanArray(Concept paraConcept)
paraConcept - the given concept.public int[] extensionInIntegerArray(Concept paraConcept)
paraConcept - the given concept.
public Concept[] computeFrequentConcepts(double paraSupportThreshold,
int paraAlgorithm)
throws java.lang.Exception
paraSupportThreshold - the threshold of support measure.paraAlgorithm - the algorithm index.java.lang.Exception
protected Concept[] computeFrequentConceptsApriori(double paraSupportThreshold)
throws java.lang.Exception
paraSupportThreshold - the threshold of support measure.java.lang.Exception - If there are too many frequent concepts to handle.protected Concept[] computeLength1FrequentConcepts(double paraSupportThreshold)
paraSupportThreshold - the threshold of support measure.
protected Concept[] removeInfrequentConcepts(Concept[] paraConcepts,
double paraSupportThreshold)
paraConcepts - Candidate concepts.paraSupportThreshold - The support threshold by percentage.
protected Concept[] aprioriGeneration(int paraLevel)
throws java.lang.Exception
paraLevel - the level of itemsets.java.lang.Exception - When there are too many frequent conceptsprotected Concept[] computeFrequentConceptsFpgrowth(double paraSupportThreshold)
paraSupportThreshold - the threshold of support measure.
protected int[][] computeFrequentConceptsExtension()
throws java.lang.Exception
java.lang.Exceptionpublic int[][] getFrequentConceptsExtension()
public java.lang.String allFrequentConceptsToString()
public void deleteAttributeAt(int paraIndex)
paraIndex - the index of the deleted attribute, it should always be 0 in
our case.public java.lang.String toString()
RoughInformationSystem 中的 toStringpublic static void main(java.lang.String[] args)
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||