coser.datamodel.informationsystem
类 Concept

java.lang.Object
  继承者 coser.datamodel.informationsystem.Concept

public class Concept
extends java.lang.Object

Summary: A set of attribute-value pairs employed by association rule mining.

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: Done.
Written time: April 17, 2012.
Last modify time: September 10, 2012.


字段摘要
修饰符 和 类型 字段 和 描述
(专用软件包)  int[] attributeIndexArray
          Indices of the attribute, 0 for the first attribute.
(专用软件包)  java.lang.String[] attributeNameArray
          Names of attributes.
(专用软件包)  java.lang.String[] attributeValueArray
          Attribute values.
(专用软件包)  int[] attributeValueIntArray
          Attribute values in integer, for example, "ab" might be stored as "0" in memory.
(专用软件包)  double coverage
          Coverage in real.
(专用软件包)  int length
          The length of the concept.
(专用软件包)  int support
          Support in integer.
 
构造方法摘要
构造函数 和 描述
Concept()
          Construct an empty concept.
Concept(Concept paraConcept)
          Essentially clone the given concept.
Concept(int paraLength)
          Construct a concept with the given length.
Concept(int[] paraIndices, java.lang.String[] paraNames, int[] paraAttributeValuesInt, java.lang.String[] paraValues)
          Construct a concept given attribute indices and values.
 
方法摘要
修饰符 和 类型 方法 和 描述
 boolean equals(Concept paraConcept)
          Does this concept equal to the given one?
 double getCoverage()
           
 int getSupport()
           
 boolean hasInfrequentSubset(Concept[] paraConcepts)
          Does this concept have infrequent subsets?
 Concept incrementalJoin(Concept paraConcept)
          Join with another concept to form a longer one.
static void main(java.lang.String[] args)
          Test the join method.
 boolean matches(Instance paraInstance)
          Does this concept match the given instance?
 void setCoverage(double paraCoverage)
           
 void setsSupport(int paraSupport)
           
 boolean superConceptEqual(Concept paraConcept)
          Is the current concept a super-concept of the given one?
 java.lang.String toString()
          The string of the concept.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

length

int length
The length of the concept. A singleton has length 1.


attributeIndexArray

int[] attributeIndexArray
Indices of the attribute, 0 for the first attribute.


attributeNameArray

java.lang.String[] attributeNameArray
Names of attributes.


attributeValueIntArray

int[] attributeValueIntArray
Attribute values in integer, for example, "ab" might be stored as "0" in memory. This is useful since Instance.value() is always a double value, which can be transferred to an integer for symbolic values.


attributeValueArray

java.lang.String[] attributeValueArray
Attribute values. Each value is a string since we are dealing with symbolic values.


support

int support
Support in integer.


coverage

double coverage
Coverage in real.

构造方法详细信息

Concept

public Concept()
Construct an empty concept.


Concept

public Concept(int paraLength)
Construct a concept with the given length. However the values are not set.


Concept

public Concept(int[] paraIndices,
               java.lang.String[] paraNames,
               int[] paraAttributeValuesInt,
               java.lang.String[] paraValues)
        throws java.lang.Exception
Construct a concept given attribute indices and values.

抛出:
java.lang.Exception

Concept

public Concept(Concept paraConcept)
Essentially clone the given concept.

方法详细信息

getSupport

public int getSupport()

setsSupport

public void setsSupport(int paraSupport)

getCoverage

public double getCoverage()

setCoverage

public void setCoverage(double paraCoverage)

incrementalJoin

public Concept incrementalJoin(Concept paraConcept)
Join with another concept to form a longer one. Two concepts should have exactly one different item.

参数:
paraConcept - the other concept.

hasInfrequentSubset

public boolean hasInfrequentSubset(Concept[] paraConcepts)
Does this concept have infrequent subsets?

参数:
paraConcepts - given concepts which are frequent.

superConceptEqual

public boolean superConceptEqual(Concept paraConcept)
Is the current concept a super-concept of the given one?

参数:
paraConcept - The given concept.

equals

public boolean equals(Concept paraConcept)
Does this concept equal to the given one?


matches

public boolean matches(Instance paraInstance)
Does this concept match the given instance?


toString

public java.lang.String toString()
The string of the concept.

覆盖:
类 java.lang.Object 中的 toString

main

public static void main(java.lang.String[] args)
Test the join method.