ca.pfv.spmf.algorithms.sequentialpatterns.fournier2008_seqdim.multidimensionalpatterns
Class MDPatterns
- java.lang.Object
-
- ca.pfv.spmf.algorithms.sequentialpatterns.fournier2008_seqdim.multidimensionalpatterns.MDPatterns
-
public class MDPatterns extends java.lang.ObjectImplementation of a set of MD-Patterns (as defined in the DIM algorithm by Pinto et al, 2001), sorted by size.
Level 0 = MDPatterns of size 0
Level 1 = MDPatterns of size 1
...
Level n = MDPatterns of size n- See Also:
AlgoDim,MDPattern,MDPatternsDatabase,AlgoFournierViger08
-
-
Constructor Summary
Constructors Constructor and Description MDPatterns(java.lang.String name)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.List<MDPattern>getLevel(int k)Get the MD-patterns of a given size in terms of number of dimensions.intgetLevelCount()Get the size of the largest MD-patterns stored in this structure.voidprintPatterns(int databaseSize)Print the patterns contained in this structure to System.out.intsize()Get the number of md-patterns stored in this structure
-
-
-
Constructor Detail
-
MDPatterns
public MDPatterns(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 databaseSize)
Print the patterns contained in this structure to System.out.- Parameters:
databaseSize- the number of MD-patterns in the MD-Pattern database.
-
getLevel
public java.util.List<MDPattern> getLevel(int k)
Get the MD-patterns of a given size in terms of number of dimensions.- Parameters:
k- the size- Returns:
- a list of MDPatterns
-
size
public int size()
Get the number of md-patterns stored in this structure- Returns:
- a int value.
-
getLevelCount
public int getLevelCount()
Get the size of the largest MD-patterns stored in this structure.- Returns:
- an int value.
-
-
DMelt 3.0 © DataMelt by jWork.ORG