ca.pfv.spmf.algorithms.sequentialpatterns.fournier2008_seqdim
Class Sequences
- java.lang.Object
-
- ca.pfv.spmf.algorithms.sequentialpatterns.fournier2008_seqdim.Sequences
-
public class Sequences extends java.lang.ObjectImplementation of a set of sequential patterns, grouped by their size (how many items they have) as used by the SeqDim and Fournier-Viger(2008) algorithms. Level i = patterns containing i items.- See Also:
AlgoFournierViger08,AlgoSeqDim
-
-
Constructor Summary
Constructors Constructor and Description Sequences(java.lang.String name)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.List<Sequence>getLevel(int index)Get all sequential patterns with a given number of items.intgetLevelCount()Get the number of level (the number of items in the largest seq.java.util.List<java.util.List<Sequence>>getLevels()Get the list of levels.voidprintSequentialPatterns(int databaseSize)Print the seq.java.lang.StringtoString(int databaseSize)Get a string representations of this group of sequences.
-
-
-
Constructor Detail
-
Sequences
public Sequences(java.lang.String name)
Constructor- Parameters:
name- a name to be given to this group of sequential patterns
-
-
Method Detail
-
printSequentialPatterns
public void printSequentialPatterns(int databaseSize)
Print the seq. patterns to System.out.- Parameters:
databaseSize- the number of sequences in the database.
-
toString
public java.lang.String toString(int databaseSize)
Get a string representations of this group of sequences.- Parameters:
databaseSize- the number of sequences in the sequence database- Returns:
- a string
-
getLevel
public java.util.List<Sequence> getLevel(int index)
Get all sequential patterns with a given number of items.- Parameters:
index- a given number of items.- Returns:
- a List of sequential patterns
-
getLevelCount
public int getLevelCount()
Get the number of level (the number of items in the largest seq. pattern)- Returns:
- an integer
-
getLevels
public java.util.List<java.util.List<Sequence>> getLevels()
Get the list of levels.- Returns:
- a List of List of Sequence objects.
-
-
DMelt 3.0 © DataMelt by jWork.ORG