public class ClosedSwarmDetector extends java.lang.Object implements SingleDetector
A closed swarm is a pattern that has the same transactions across the clusters. The only restriction is that it need to have at least minTime number of times.
Constructor and Description |
---|
ClosedSwarmDetector(int minTime)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Pattern> |
detect(DataBase dataBase,
Itemset itemset)
Method in charge of detecting
ClosedSwarm
patterns.
|
java.lang.String |
toString()
|
public ClosedSwarmDetector(int minTime)
minTime
- minimal number of timespublic java.util.ArrayList<Pattern> detect(DataBase dataBase, Itemset itemset)
ClosedSwarm
patterns.
detect
in
interface SingleDetector
dataBase
- the databaseitemset
- an itemsetpublic java.lang.String toString()
toString
in class java.lang.Object