public class DivergentDetector extends java.lang.Object implements MultiDetector
A divergent pattern is when from a defined set of transactions, these transactions diverge over time(forming a tree).
ConvergentDetector
Constructor and Description |
---|
DivergentDetector()
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Pattern> |
detect(DataBase dataBase,
java.util.Collection<Itemset> itemsets)
Detects all the
Divergent
patterns in a collection of itemsets
|
int |
subDetect(boolean[][] itemsetMatrice,
int clusterId,
java.util.ArrayList<java.lang.Integer> itemsetIds)
Detect the first cluster when all the itemsetIds are present
|
java.lang.String |
toString()
|
public java.util.ArrayList<Pattern> detect(DataBase dataBase, java.util.Collection<Itemset> itemsets)
Divergent
patterns in a collection of itemsets
detect
in
interface MultiDetector
dataBase
- data binderitemsets
- a collection of all the itemsets detectedpublic int subDetect(boolean[][] itemsetMatrice, int clusterId, java.util.ArrayList<java.lang.Integer> itemsetIds)
itemsetMatrice
- the matrixclusterId
- the last clusterId when the itemsets are all present
itemsetIds
- a list of the itemsetIdspublic java.lang.String toString()
toString
in class java.lang.Object