类 Sequence
java.lang.Object
weka.associations.gsp.Sequence
- 所有已实现的接口:
Serializable
,Cloneable
,RevisionHandler
Class representing a sequence of elements/itemsets.
- 版本:
- $Revision: 1.2 $
- 作者:
- Sebastian Beer
- 另请参阅:
-
构造器概要
构造器构造器说明Sequence()
Constructor.Sequence
(int supportCount) Constructor accepting an int value as parameter to set the support count.Sequence
(FastVector elements) Constructor accepting a set of elements as parameter. -
方法概要
修饰符和类型方法说明static FastVector
aprioriGen
(FastVector kMinusOneSequences) Generates all possible candidate k-Sequences and prunes the ones that contain an infrequent (k-1)-Sequence.clone()
Returns a deep clone of a Sequence.static FastVector
deleteInfrequentSequences
(FastVector sequences, long minSupportCount) Deletes Sequences of a given set which don't meet the minimum support count threshold.boolean
Checks if two Sequences are equal.Returns the revision string.static FastVector
oneElementsToSequences
(FastVector elements) Converts a set of 1-Elements into a set of 1-Sequences.static void
printSetOfSequences
(FastVector setOfSequences) Prints a set of Sequences as String output.static String
setOfSequencesToString
(FastVector setOfSequences, Instances dataSet, FastVector filterAttributes) Returns a String representation of a set of Sequences where the numeric value of each event/item is represented by its respective nominal value.toNominalString
(Instances dataSet) Returns a String representation of a Sequences where the numeric value of each event/item is represented by its respective nominal value.toString()
Returns a String representation of a Sequence.static void
updateSupportCount
(FastVector candidates, FastVector dataSequences) Updates the support count of a set of Sequence candidates according to a given set of data sequences.
-
构造器详细资料
-
Sequence
public Sequence()Constructor. -
Sequence
Constructor accepting a set of elements as parameter.- 参数:
elements
- the Elements of the Sequence
-
Sequence
public Sequence(int supportCount) Constructor accepting an int value as parameter to set the support count.- 参数:
supportCount
- the support count to set
-
-
方法详细资料
-
aprioriGen
public static FastVector aprioriGen(FastVector kMinusOneSequences) throws CloneNotSupportedException Generates all possible candidate k-Sequences and prunes the ones that contain an infrequent (k-1)-Sequence.- 参数:
kMinusOneSequences
- the set of (k-1)-Sequences, used for verification- 返回:
- the generated set of k-candidates
- 抛出:
CloneNotSupportedException
-
deleteInfrequentSequences
Deletes Sequences of a given set which don't meet the minimum support count threshold.- 参数:
sequences
- the set Sequences to be checkedminSupportCount
- the minimum support count- 返回:
- the set of Sequences after deleting
-
oneElementsToSequences
Converts a set of 1-Elements into a set of 1-Sequences.- 参数:
elements
- the set of 1-Elements- 返回:
- the set of 1-Sequences
-
printSetOfSequences
Prints a set of Sequences as String output.- 参数:
setOfSequences
- the set of sequences
-
setOfSequencesToString
public static String setOfSequencesToString(FastVector setOfSequences, Instances dataSet, FastVector filterAttributes) Returns a String representation of a set of Sequences where the numeric value of each event/item is represented by its respective nominal value.- 参数:
setOfSequences
- the set of SequencesdataSet
- the corresponding data set containing the header informationfilterAttributes
- the attributes to filter out- 返回:
- the String representation
-
updateSupportCount
Updates the support count of a set of Sequence candidates according to a given set of data sequences.- 参数:
candidates
- the set of candidatesdataSequences
- the set of data sequences
-
clone
Returns a deep clone of a Sequence.- 返回:
- the cloned Sequence
-
equals
Checks if two Sequences are equal. -
toNominalString
Returns a String representation of a Sequences where the numeric value of each event/item is represented by its respective nominal value.- 参数:
dataSet
- the corresponding data set containing the header information- 返回:
- the String representation
-
toString
Returns a String representation of a Sequence. -
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 返回:
- the revision
-