public static class AssociationRuleGeneration.ItemsetSearcher
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<Itemset> |
itemsets
Itemsets to search.
|
(package private) IntegerArray |
offsets
Offsets into above array, based on length.
|
Constructor and Description |
---|
ItemsetSearcher(java.util.List<Itemset> itemsets)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
buildIndex(int begin,
int end)
Build a length index by binary search.
|
int |
getOffset(int i)
Offset for itemsets of length i.
|
int |
maxLength()
Length of longest itemset.
|
Itemset |
search(Itemset c)
Find an itemset, using binary search.
|
java.util.List<Itemset> itemsets
IntegerArray offsets
public ItemsetSearcher(java.util.List<Itemset> itemsets)
itemsets
- Itemsetspublic Itemset search(Itemset c)
c
- Itemset to searchpublic int maxLength()
public int getOffset(int i)
i
- Lengthprivate void buildIndex(int begin, int end)
begin
- Beginend
- EndCopyright © 2019 ELKI Development Team. License information.