public abstract class AbstractOrderedItemset extends AbstractItemset
AbstractItemset
Constructor and Description |
---|
AbstractOrderedItemset() |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
allTheSameExceptLastItem(AbstractOrderedItemset itemset2)
Check if the items from this itemset are all the same as those of another itemset
except the last item
and that itemset2 is lexically smaller than this itemset.
|
boolean |
allTheSameExceptLastItemV2(AbstractOrderedItemset itemset2)
This method checks if this itemset is the same as another itemset
except for the last item.
|
boolean |
contains(java.lang.Integer item)
Check if this itemset contains a given item.
|
boolean |
containsAll(AbstractOrderedItemset itemset2)
This methods checks if another itemset is contained in this one.
|
abstract java.lang.Integer |
get(int position)
Get the item at a given position of this itemset
|
abstract int |
getAbsoluteSupport()
Get the support of this itemset
|
java.lang.Integer |
getLastItem()
Get the last item.
|
double |
getRelativeSupport(int nbObject)
Get the relative support of this itemset (a percentage) as a double
|
boolean |
isEqualTo(AbstractOrderedItemset itemset2)
This method compare this itemset with another itemset to see if they are
equal.
|
boolean |
isEqualTo(int[] itemset)
This method compare this itemset with another itemset to see if they are
equal.
|
abstract int |
size()
Get the size of this itemset
|
java.lang.String |
toString()
Get this itemset as a string
|
getRelativeSupportAsString, print
public abstract int getAbsoluteSupport()
getAbsoluteSupport
in class AbstractItemset
public abstract int size()
size
in class AbstractItemset
public abstract java.lang.Integer get(int position)
position
- the position of the item to be returnedpublic java.lang.Integer getLastItem()
public java.lang.String toString()
toString
in class AbstractItemset
public double getRelativeSupport(int nbObject)
getRelativeSupport
in class AbstractItemset
nbObject
- the number of transactions in the database where this itemset was foundpublic boolean contains(java.lang.Integer item)
contains
in class AbstractItemset
item
- the itempublic boolean containsAll(AbstractOrderedItemset itemset2)
itemset2
- the other itemsetpublic boolean isEqualTo(AbstractOrderedItemset itemset2)
itemset2
- an itemsetpublic boolean isEqualTo(int[] itemset)
an
- itemsetpublic boolean allTheSameExceptLastItemV2(AbstractOrderedItemset itemset2)
itemset2
- the second itemsetpublic java.lang.Integer allTheSameExceptLastItem(AbstractOrderedItemset itemset2)