类 FPGrowth.BinaryItem
java.lang.Object
weka.associations.FPGrowth.BinaryItem
- 所有已实现的接口:
Serializable
,Comparable<FPGrowth.BinaryItem>
- 封闭类:
- FPGrowth
public static class FPGrowth.BinaryItem
extends Object
implements Serializable, Comparable<FPGrowth.BinaryItem>
Inner class that handles a single binary item
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明int
compareTo
(FPGrowth.BinaryItem comp) Ensures that items will be sorted in descending order of frequency.void
Decrement the frequency of this item.void
decreaseFrequency
(int f) Decrease the frequency of this item.boolean
Get the attribute that this item corresponds to.int
Get the frequency of this item.int
Get the value index for this item.int
hashCode()
void
Increment the frequency of this item.void
increaseFrequency
(int f) Increase the frequency of this item.toString()
A string representation of this item.toString
(boolean freq) A string representation of this item.toXML()
-
构造器详细资料
-
BinaryItem
- 抛出:
Exception
-
-
方法详细资料
-
increaseFrequency
public void increaseFrequency(int f) Increase the frequency of this item.- 参数:
f
- the amount to increase the frequency by.
-
decreaseFrequency
public void decreaseFrequency(int f) Decrease the frequency of this item.- 参数:
f
- the amount by which to decrease the frequency.
-
increaseFrequency
public void increaseFrequency()Increment the frequency of this item. -
decreaseFrequency
public void decreaseFrequency()Decrement the frequency of this item. -
getFrequency
public int getFrequency()Get the frequency of this item.- 返回:
- the frequency.
-
getAttribute
Get the attribute that this item corresponds to.- 返回:
- the corresponding attribute.
-
getValueIndex
public int getValueIndex()Get the value index for this item.- 返回:
- the value index.
-
toString
A string representation of this item. -
toString
A string representation of this item.- 参数:
freq
- true if the frequency should be included.- 返回:
- a string representation of this item.
-
toXML
-
compareTo
Ensures that items will be sorted in descending order of frequency. Ties are ordered by attribute name.- 指定者:
compareTo
在接口中Comparable<FPGrowth.BinaryItem>
- 参数:
comp
- the BinaryItem to compare against.
-
equals
-
hashCode
public int hashCode()
-