Documentation of 'ca.pfv.spmf.algorithms.sequentialpatterns.prefixSpan_AGP.items.abstractions.Abstraction_Qualitative' Java class
Abstraction_Qualitative
ca.pfv.spmf.algorithms.sequentialpatterns.prefixSpan_AGP.items.abstractions

Class Abstraction_Qualitative

  • All Implemented Interfaces:
    java.lang.Comparable<Abstraction_Generic>


    public class Abstraction_Qualitative
    extends Abstraction_Generic
    Class that implements a qualitative abstraction. Two different values are possible: to be with an equal relation with respect to a previous pair (if occurs at the same time), or to be with an after relation with respect to that previous pair (the previous pair have a before relation with respect to this one) Copyright Antonio Gomariz Peñalver 2013 This file is part of the SPMF DATA MINING SOFTWARE (http://www.philippe-fournier-viger.com/spmf). SPMF is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. SPMF is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with SPMF. If not, see .
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      static void clear() 
      int compareTo(Abstraction_Generic arg) 
      boolean compute(PseudoSequence sequence, int projection, int itemsetIndex)
      It returns true if the projection indicated starts in the middle of an itemset and the abstraction is an equal relation, or if the projection starts in the first item of the itemset and the abstraction does not have an equal relation.
      static Abstraction_Qualitative create(boolean equalRelation)
      It creates a new abstraction with the given value.
      boolean equals(java.lang.Object arg)
      It checks if this abstraction is equal to another abstraction
      boolean hasEqualRelation() 
      int hashCode()
      It returns the hash code associated with an abstraction
      java.lang.String toString()
      It returns a string representation of an abstraction
      java.lang.String toStringToFile()
      Get the string representation of this abstraction.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • clear

        public static void clear()
      • create

        public static Abstraction_Qualitative create(boolean equalRelation)
        It creates a new abstraction with the given value.
        Parameters:
        equalRelation -
        Returns:
        the abstraction
      • equals

        public boolean equals(java.lang.Object arg)
        Description copied from class: Abstraction_Generic
        It checks if this abstraction is equal to another abstraction
        Specified by:
        equals in class Abstraction_Generic
        Parameters:
        arg - the other abstraction
        Returns:
        true if equal. Otherwise, false.
      • hasEqualRelation

        public boolean hasEqualRelation()
      • toStringToFile

        public java.lang.String toStringToFile()
        Get the string representation of this abstraction. Adjusted to SPMF format.
        Specified by:
        toStringToFile in class Abstraction_Generic
        Returns:
        the string representation
      • compute

        public boolean compute(PseudoSequence sequence,
                               int projection,
                               int itemsetIndex)
        It returns true if the projection indicated starts in the middle of an itemset and the abstraction is an equal relation, or if the projection starts in the first item of the itemset and the abstraction does not have an equal relation.
        Specified by:
        compute in class Abstraction_Generic
        Parameters:
        sequence - The sequence in which we apply the method
        projection - The projection of the pseudosequence in which we are interested
        itemsetIndex - The itemset index
        Returns:
        true if the above condition is met.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.