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

Class Abstraction_Generic

  • All Implemented Interfaces:
    java.lang.Comparable<Abstraction_Generic>
    Direct Known Subclasses:
    Abstraction_Qualitative


    public abstract class Abstraction_Generic
    extends java.lang.Object
    implements java.lang.Comparable<Abstraction_Generic>
    Abstract Class to enable any kind of abstraction. 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 Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      abstract boolean compute(PseudoSequence sequence, int projection, int indexItemset)
      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.
      abstract boolean equals(java.lang.Object o)
      It checks if this abstraction is equal to another abstraction
      abstract int hashCode()
      It returns the hash code associated with an abstraction
      abstract java.lang.String toString()
      It returns a string representation of an abstraction
      abstract java.lang.String toStringToFile()
      It returns a string representation according to SPMF format
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Comparable

        compareTo
    • Constructor Detail

      • Abstraction_Generic

        public Abstraction_Generic()
    • Method Detail

      • equals

        public abstract boolean equals(java.lang.Object o)
        It checks if this abstraction is equal to another abstraction
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - the other abstraction
        Returns:
        true if equal. Otherwise, false.
      • hashCode

        public abstract int hashCode()
        It returns the hash code associated with an abstraction
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        the hash code
      • toString

        public abstract java.lang.String toString()
        It returns a string representation of an abstraction
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string
      • toStringToFile

        public abstract java.lang.String toStringToFile()
        It returns a string representation according to SPMF format
        Returns:
        a string
      • compute

        public abstract boolean compute(PseudoSequence sequence,
                                        int projection,
                                        int indexItemset)
        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.
        Parameters:
        sequence - a sequence
        projection - the projection index
        indexItemset - a given itemset position
        Returns:
        true if the condition above is met.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.