ca.pfv.spmf.input.sequence_database_array_integers
Class Sequence
- java.lang.Object
-
- ca.pfv.spmf.input.sequence_database_array_integers.Sequence
-
public class Sequence extends java.lang.ObjectImplementation of a sequence as a list of itemsets, where itemsets are array of integers.- See Also:
SequenceDatabase
-
-
Constructor Summary
Constructors Constructor and Description Sequence()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddItemset(java.lang.Object[] itemset)Add an itemset to this sequence.java.lang.Integer[]get(int index)Get the itemset at a given position in this sequence.java.util.List<java.lang.Integer[]>getItemsets()Get the list of itemsets in this sequence.voidprint()Print this sequence to System.out.intsize()Get the size of this sequence (number of itemsets).java.lang.StringtoString()Return a string representation of this sequence.
-
-
-
Method Detail
-
addItemset
public void addItemset(java.lang.Object[] itemset)
Add an itemset to this sequence.- Parameters:
itemset- An itemset (array of integers)
-
print
public void print()
Print this sequence to System.out.
-
toString
public java.lang.String toString()
Return a string representation of this sequence.- Overrides:
toStringin classjava.lang.Object
-
getItemsets
public java.util.List<java.lang.Integer[]> getItemsets()
Get the list of itemsets in this sequence.- Returns:
- the list of itemsets.
-
get
public java.lang.Integer[] get(int index)
Get the itemset at a given position in this sequence.- Parameters:
index- the position- Returns:
- the itemset as an array of integers.
-
size
public int size()
Get the size of this sequence (number of itemsets).- Returns:
- the size (an integer).
-
-
DMelt 3.0 © DataMelt by jWork.ORG