Documentation of 'ca.pfv.spmf.algorithms.sequentialpatterns.clospan_AGP.items.Pair' Java class
Pair
ca.pfv.spmf.algorithms.sequentialpatterns.clospan_AGP.items

Class Pair

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


    public class Pair
    extends java.lang.Object
    implements java.lang.Comparable<Pair>
    This class is used by PrefixSpan and it is based on SPMF original PrefixSpan Algorithm. It represents, based on Hirate & Yamana a pair of an Item and its occurrences in the projected database. It is used for calculating the support of item in a database. 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 .
    • Constructor Detail

      • Pair

        public Pair(boolean postfix,
                    ItemAbstractionPair pair)
        Standard constructor
        Parameters:
        postfix - flag indicating if it is an item appearing in the same itemset as that one from the projection was done
        pair - pair appearing after the item of the projection
    • Method Detail

      • equals

        public boolean equals(java.lang.Object object)
        Method to know this pair is equal to another.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        object - the other pair
        Returns:
        true if equal
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • isPostfix

        public boolean isPostfix()
      • getSupport

        public int getSupport()
        Get the number of sequences where the pair appears.
        Returns:
        the number of sequences.
      • getSequencesID

        public java.util.BitSet getSequencesID()
        It returns the list of the sequences where the pair appears
        Returns:
        the list of sequnces as a bitset.
      • setSequencesID

        public void setSequencesID(java.util.BitSet sequencesID)
      • compareTo

        public int compareTo(Pair o)
        Specified by:
        compareTo in interface java.lang.Comparable<Pair>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.