public class ConvergentDetector extends java.lang.Object implements MultiDetector
A convergeant pattern is when more and more transactions are joining across a period of time
DivergentDetector
Constructor and Description |
---|
ConvergentDetector()
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Pattern> |
detect(DataBase dataBase,
java.util.Collection<Itemset> itemsets)
Detects all the
Convergent in
a collection of itemsets.
|
int |
subDetect(boolean[][] itemsetMatrice,
int clusterId,
java.util.ArrayList<java.lang.Integer> itemsetIds,
int nbClusters)
Detect the last cluster when all the itemsetIds are present
|
java.lang.String |
toString()
|
public java.util.ArrayList<Pattern> detect(DataBase dataBase, java.util.Collection<Itemset> itemsets)
Convergent
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, int nbClusters)
itemsetMatrice
- the matrixclusterId
- the first clusterId when the itemsets are all present
itemsetIds
- a list of the itemsetIdsnbClusters
- the maximum number of clusterspublic java.lang.String toString()
toString
in class java.lang.Object