org.processmining.analysis.dws
Class Cluster

java.lang.Object
  extended by org.processmining.analysis.dws.Cluster

public class Cluster
extends java.lang.Object

Defines the data structures and the algorithms for the clustering.

Version:
1.0
Author:
Gianluigi Greco, Antonella Guzzo

Constructor Summary
Cluster(LogReader log, java.lang.String name, int k, double sigma, double gamma, int l, int maxFeatures)
          Constructor for the root of the hierarchy.
 
Method Summary
 java.util.ArrayList getChildren()
           
 java.util.ArrayList getFeatures()
           
 HeuristicsNet getHeuristicsNet()
           
 LogReader getLog()
           
 java.lang.String getName()
           
 void mineClusters()
          Implement the clustering procedure
 void mineFeatures()
          Mines the features for the model and the log of the cluster.
 void setHeuristicsNet(HeuristicsNet en)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Cluster

public Cluster(LogReader log,
               java.lang.String name,
               int k,
               double sigma,
               double gamma,
               int l,
               int maxFeatures)
Constructor for the root of the hierarchy.

Parameters:
log - Log file.
name - Name of the cluster.
k - Number of clusters to be mined.
sigma - Threshold for the mining of the features.
gamma - Threshold for the mining of the features.
l - Maximum legth of each feature.
maxFeatures - Maximum number of features.
Method Detail

mineClusters

public void mineClusters()
Implement the clustering procedure

Throws:
java.lang.Exception

mineFeatures

public void mineFeatures()
Mines the features for the model and the log of the cluster. The cluster has to be equipped with a HeursticsNet. If less than maxFeatures are discovered, the value maxFeatures is updated. Otherwise, the best maxFeatures features are mined.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getHeuristicsNet

public HeuristicsNet getHeuristicsNet()
Returns:
The HeuristicsNet model associated with the cluster.

setHeuristicsNet

public void setHeuristicsNet(HeuristicsNet en)
Parameters:
en - The HeuristicsNet to associate with the cluster.

getName

public java.lang.String getName()
Returns:
The name of the cluster.

getLog

public LogReader getLog()
Returns:
The log associated with the cluster.

getFeatures

public java.util.ArrayList getFeatures()
Returns:
The features associated with the cluster.

getChildren

public java.util.ArrayList getChildren()
Returns:
The children of the cluster.