public class SequentialPattern extends java.lang.Object implements java.lang.Comparable<SequentialPattern>
Constructor and Description |
---|
SequentialPattern()
Defaults constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addItemset(Itemset itemset)
Add an itemset to this sequential pattern
|
int |
compareTo(SequentialPattern o) |
Itemset |
get(int index)
Get an itemset at a given position.
|
int |
getAbsoluteSupport()
Get the absolute support of this pattern.
|
java.util.List<Itemset> |
getItemsets()
Get the itemsets in this sequential pattern
|
java.lang.String |
getRelativeSupportFormated(int sequencecount)
Get the relative support of this pattern (a percentage)
|
java.util.List<java.lang.Integer> |
getSequenceIDs() |
java.lang.String |
itemsetsToString()
Get a string representation of this sequential pattern.
|
void |
print()
Print this sequential pattern to System.out
|
void |
setSequenceIDs(java.util.List<java.lang.Integer> sequencesIds)
Set the set of IDs of sequence containing this prefix
|
int |
size()
Get the number of itemsets in this sequential pattern.
|
java.lang.String |
toString()
Get a string representation of this sequential pattern,
containing the sequence IDs of sequence containing this pattern.
|
public void setSequenceIDs(java.util.List<java.lang.Integer> sequencesIds)
a
- set of integer containing sequence IDspublic java.lang.String getRelativeSupportFormated(int sequencecount)
sequencecount
- the number of sequences in the original databasepublic int getAbsoluteSupport()
public void addItemset(Itemset itemset)
itemset
- the itemset to be addedpublic void print()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String itemsetsToString()
public java.util.List<Itemset> getItemsets()
public Itemset get(int index)
index
- the positionpublic int size()
public java.util.List<java.lang.Integer> getSequenceIDs()
public int compareTo(SequentialPattern o)
compareTo
in interface java.lang.Comparable<SequentialPattern>