Documentation of 'ca.pfv.spmf.algorithms.sequential_rules.trulegrowth_with_strings.Occurence' Java class
Occurence
ca.pfv.spmf.algorithms.sequential_rules.trulegrowth_with_strings

Class Occurence

    • Constructor Summary

      Constructors 
      Constructor and Description
      Occurence(int sequenceID)
      Contructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void add(short occurence)
      Add an occurence.
      boolean equals(java.lang.Object obj)
      Check if a given Occurence is the same as this one (used to store occurence in Collections).
      short getFirst()
      Get the first occurence in this sequence.
      short getLast()
      Get the last occurence in this sequence.
      int hashCode()
      Hashcode method.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Occurence

        public Occurence(int sequenceID)
        Contructor
        Parameters:
        sequenceID - a sequence ID
    • Method Detail

      • add

        public void add(short occurence)
        Add an occurence.
        Parameters:
        occurence - the position of an itemset
      • getFirst

        public short getFirst()
        Get the first occurence in this sequence.
        Returns:
        the position of an itemset
      • getLast

        public short getLast()
        Get the last occurence in this sequence.
        Returns:
        the position of an itemset
      • equals

        public boolean equals(java.lang.Object obj)
        Check if a given Occurence is the same as this one (used to store occurence in Collections).
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - another Occurence
        Returns:
        true if they both have the same sequence ID.
      • hashCode

        public int hashCode()
        Hashcode method.
        Overrides:
        hashCode in class java.lang.Object

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.