public class SequentialPatterns
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.List<java.util.List<SequentialPattern>> |
levels |
int |
sequenceCount |
Constructor and Description |
---|
SequentialPatterns(java.lang.String name)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addSequence(SequentialPattern sequence,
int k)
Add a sequential pattern to this set of sequential patterns.
|
java.util.List<SequentialPattern> |
getLevel(int index)
Get all the sequential patterns of a given size.
|
int |
getLevelCount()
Get the maximum size of sequential patterns + 1.
|
java.util.List<java.util.List<SequentialPattern>> |
getLevels()
Get a list of list of sequential patterns such that
at position i, there is a list of sequential patterns
containing i items.
|
void |
printFrequentPatterns(int nbObject,
boolean showSequenceIdentifiers)
Print all sequential patterns to System.out.
|
java.lang.String |
toString(int nbObject,
boolean showSequenceIdentifiers)
Get a string representation of this set of sequential patterns.
|
public final java.util.List<java.util.List<SequentialPattern>> levels
public int sequenceCount
public SequentialPatterns(java.lang.String name)
name
- a name to give to this set of patternspublic void printFrequentPatterns(int nbObject, boolean showSequenceIdentifiers)
nbObject
- the size of the original database in terms of sequences.showSequenceIdentifiers
- if true, sequence identifiers will be output for each patternpublic java.lang.String toString(int nbObject, boolean showSequenceIdentifiers)
nbObject
- the number of sequences in the database where these patterns were found.showSequenceIdentifiers
- if true, sequence identifiers will be output for each patternpublic void addSequence(SequentialPattern sequence, int k)
sequence
- the sequential patternk
- the size of the sequential pattern in temrs of itemset.public java.util.List<SequentialPattern> getLevel(int index)
index
- the size in terms of items.public int getLevelCount()
public java.util.List<java.util.List<SequentialPattern>> getLevels()