ca.pfv.spmf.algorithms.sequentialpatterns.fournier2008_seqdim.multidimensionalsequentialpatterns
Class MDSequences
- java.lang.Object
-
- ca.pfv.spmf.algorithms.sequentialpatterns.fournier2008_seqdim.multidimensionalsequentialpatterns.MDSequences
-
public class MDSequences extends java.lang.ObjectA set of MDSequences organized by levels representing their size. Returned by the AlgoSeqDim algorithm.
Level 0 = MDSequences of size 0
Level 1 = MDSequences of size 1
...
Level n = MDSequences of size n- See Also:
AlgoFournierViger08
-
-
Constructor Summary
Constructors Constructor and Description MDSequences(java.lang.String name)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddSequence(MDSequence sequence, int k)Add a MD-sequence to this structurejava.util.List<MDSequence>getLevel(int k)Get MDSequences of size k.java.util.List<java.util.List<MDSequence>>getLevels()Get the size of the largest MD-Sequence stored in this structure.voidprintPatterns(int sequenceCount)Print the patterns contained in this structure to System.out.voidrecalculateSize()Recalculate the number of MDSequences stored in this structure.intsize()Get the number of MDSequences stored in this structure.java.lang.StringtoString(int sequenceCount)Get a String representation of this set of MDSequences.
-
-
-
Constructor Detail
-
MDSequences
public MDSequences(java.lang.String name)
Constructor.- Parameters:
name- a name for the patterns that will be contained in this structure (String).
-
-
Method Detail
-
printPatterns
public void printPatterns(int sequenceCount)
Print the patterns contained in this structure to System.out.- Parameters:
sequenceCount- the number of MDSequences in the MDSequences database.
-
toString
public java.lang.String toString(int sequenceCount)
Get a String representation of this set of MDSequences.- Parameters:
sequenceCount- the number of MDSequences in the MDSequences database.- Returns:
- a string
-
addSequence
public void addSequence(MDSequence sequence, int k)
Add a MD-sequence to this structure- Parameters:
sequence- the MDSequencek- the size of the MDSequence
-
getLevel
public java.util.List<MDSequence> getLevel(int k)
Get MDSequences of size k.- Parameters:
k- the size- Returns:
- a list of MDSequence objects
-
size
public int size()
Get the number of MDSequences stored in this structure.- Returns:
- an integer
-
getLevels
public java.util.List<java.util.List<MDSequence>> getLevels()
Get the size of the largest MD-Sequence stored in this structure.- Returns:
- an int value.
-
recalculateSize
public void recalculateSize()
Recalculate the number of MDSequences stored in this structure.
-
-
DMelt 3.0 © DataMelt by jWork.ORG