ca.pfv.spmf.algorithms.frequentpatterns.uapriori
Class ItemUApriori
- java.lang.Object
-
- ca.pfv.spmf.algorithms.frequentpatterns.uapriori.ItemUApriori
-
public class ItemUApriori extends java.lang.ObjectThis class represents an item from a transaction database as used by the UApriori algorithm uncertain itemset mining.- See Also:
AlgoUApriori,UncertainTransactionDatabase,ItemsetUApriori
-
-
Constructor Summary
Constructors Constructor and Description ItemUApriori(int id, double probability)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object object)Check if this item is equal to another.intgetId()Get the item id.doublegetProbability()Get the existential probability associated to this iteminthashCode()Generate an hash code for that item.java.lang.StringtoString()Get a string representation of this item.
-
-
-
Constructor Detail
-
ItemUApriori
public ItemUApriori(int id, double probability)Constructor- Parameters:
id- id ot the itemprobability- the existential proability
-
-
Method Detail
-
getId
public int getId()
Get the item id.- Returns:
- a int.
-
toString
public java.lang.String toString()
Get a string representation of this item.- Overrides:
toStringin classjava.lang.Object- Returns:
- a string
-
equals
public boolean equals(java.lang.Object object)
Check if this item is equal to another.- Overrides:
equalsin classjava.lang.Object- Parameters:
object- another item- Returns:
- true if equal, otherwise false.
-
hashCode
public int hashCode()
Generate an hash code for that item.- Overrides:
hashCodein classjava.lang.Object- Returns:
- an hash code as a int.
-
getProbability
public double getProbability()
Get the existential probability associated to this item- Returns:
- the probability as a double
-
-
DMelt 3.0 © DataMelt by jWork.ORG