Documentation of 'ca.pfv.spmf.input.sequence_database_array_integers.Sequence' Java class
Sequence
ca.pfv.spmf.input.sequence_database_array_integers

Class Sequence



  • public class Sequence
    extends java.lang.Object
    Implementation 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
      void addItemset(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.
      void print()
      Print this sequence to System.out.
      int size()
      Get the size of this sequence (number of itemsets).
      java.lang.String toString()
      Return a string representation of this sequence.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Sequence

        public 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:
        toString in class java.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

You see the box below because you did not login.