ca.pfv.spmf.algorithms.sequentialpatterns.BIDE_and_prefixspan_with_strings
Class SequentialPatterns
- java.lang.Object
-
- ca.pfv.spmf.algorithms.sequentialpatterns.BIDE_and_prefixspan_with_strings.SequentialPatterns
-
public class SequentialPatterns extends java.lang.ObjectThis class represents a set of sequential patterns found either by the PrefixSpan or BIDE+ algorithms, grouped by their size (how many items they have).
-
-
Constructor Summary
Constructors Constructor and Description SequentialPatterns(java.lang.String name)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.List<SequentialPattern>getLevel(int index)Get all the sequential patterns of a given size.intgetLevelCount()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.voidprintSequencesFrequentes(int nbObject)Print all sequential patterns to System.out.java.lang.StringtoString(int nbObject)Get a string representation of this set of sequential patterns.
-
-
-
Constructor Detail
-
SequentialPatterns
public SequentialPatterns(java.lang.String name)
Constructor- Parameters:
name- a name to give to this set of patterns
-
-
Method Detail
-
printSequencesFrequentes
public void printSequencesFrequentes(int nbObject)
Print all sequential patterns to System.out.- Parameters:
nbObject- the size of the original database in terms of sequences.
-
toString
public java.lang.String toString(int nbObject)
Get a string representation of this set of sequential patterns.- Parameters:
nbObject- the number of sequences in the database where these patterns were found.- Returns:
- a string
-
getLevel
public java.util.List<SequentialPattern> getLevel(int index)
Get all the sequential patterns of a given size.- Parameters:
index- the size in terms of items.- Returns:
- a list of sequential patterns.
-
getLevelCount
public int getLevelCount()
Get the maximum size of sequential patterns + 1.- Returns:
- the maximum size.
-
getLevels
public 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.- Returns:
- the list of pattern lists.
-
-
DMelt 3.0 © DataMelt by jWork.ORG