|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.associations.gsp.Sequence
public class Sequence
Class representing a sequence of elements/itemsets.
| Constructor Summary | |
|---|---|
Sequence()
Constructor. |
|
Sequence(FastVector elements)
Constructor accepting a set of elements as parameter. |
|
Sequence(int supportCount)
Constructor accepting an int value as parameter to set the support count. |
|
| Method Summary | |
|---|---|
static FastVector |
aprioriGen(FastVector kMinusOneSequences)
Generates all possible candidate k-Sequences and prunes the ones that contain an infrequent (k-1)-Sequence. |
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 |
equals(java.lang.Object obj)
Checks if two Sequences are equal. |
java.lang.String |
getRevision()
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 java.lang.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. |
java.lang.String |
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. |
java.lang.String |
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. |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Sequence()
public Sequence(FastVector elements)
elements - the Elements of the Sequencepublic Sequence(int supportCount)
supportCount - the support count to set| Method Detail |
|---|
public static FastVector aprioriGen(FastVector kMinusOneSequences)
throws java.lang.CloneNotSupportedException
kMinusOneSequences - the set of (k-1)-Sequences, used for verification
java.lang.CloneNotSupportedException
public static FastVector deleteInfrequentSequences(FastVector sequences,
long minSupportCount)
sequences - the set Sequences to be checkedminSupportCount - the minimum support count
public static FastVector oneElementsToSequences(FastVector elements)
elements - the set of 1-Elements
public static void printSetOfSequences(FastVector setOfSequences)
setOfSequences - the set of sequences
public static java.lang.String setOfSequencesToString(FastVector setOfSequences,
Instances dataSet,
FastVector filterAttributes)
setOfSequences - the set of SequencesdataSet - the corresponding data set containing the header
informationfilterAttributes - the attributes to filter out
public static void updateSupportCount(FastVector candidates,
FastVector dataSequences)
candidates - the set of candidatesdataSequences - the set of data sequencespublic Sequence clone()
clone in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toNominalString(Instances dataSet)
dataSet - the corresponding data set containing the header
information
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getRevision()
getRevision in interface RevisionHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||