org.processmining.mining.graphclustering
Class SpareClusterGraph

java.lang.Object
  extended by org.processmining.mining.graphclustering.SpareClusterGraph

public class SpareClusterGraph
extends java.lang.Object

Author:
Christian W. Guenther (christian@deckfour.org)

Nested Class Summary
protected  class SpareClusterGraph.SpareCluster
           
 
Field Summary
protected static int clusterCounter
           
protected  SpareClusterGraph.SpareCluster[] clusterMap
           
protected  java.util.ArrayList<SpareClusterGraph.SpareCluster> clusters
           
protected  cern.colt.matrix.DoubleMatrix2D followMatrix
           
protected  LogEvents logEvents
           
protected  double normalizationFactor
           
protected static java.text.NumberFormat numberFormat
           
protected  double threshold
           
 
Constructor Summary
SpareClusterGraph(LogEvents aLogEvents, cern.colt.matrix.DoubleMatrix2D aFollowMatrix, double aThreshold)
           
 
Method Summary
protected  double calculateNormalizationFactor()
           
protected  void clusterGraph()
           
static java.lang.String format(double number)
           
protected  SpareClusterGraph.SpareCluster getClusterForIndex(int index)
           
 javax.swing.JPanel getGraphPanel(double threshold)
           
protected  java.lang.String getNodeId(int index)
           
 void setThreshold(double aThreshold)
           
protected  boolean victimLeft(boolean[] victimMap)
           
 void writeToDot(java.io.Writer bw)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clusterCounter

protected static int clusterCounter

numberFormat

protected static java.text.NumberFormat numberFormat

logEvents

protected LogEvents logEvents

followMatrix

protected cern.colt.matrix.DoubleMatrix2D followMatrix

threshold

protected double threshold

normalizationFactor

protected double normalizationFactor

clusters

protected java.util.ArrayList<SpareClusterGraph.SpareCluster> clusters

clusterMap

protected SpareClusterGraph.SpareCluster[] clusterMap
Constructor Detail

SpareClusterGraph

public SpareClusterGraph(LogEvents aLogEvents,
                         cern.colt.matrix.DoubleMatrix2D aFollowMatrix,
                         double aThreshold)
Method Detail

format

public static java.lang.String format(double number)

calculateNormalizationFactor

protected double calculateNormalizationFactor()

getClusterForIndex

protected SpareClusterGraph.SpareCluster getClusterForIndex(int index)

setThreshold

public void setThreshold(double aThreshold)

getGraphPanel

public javax.swing.JPanel getGraphPanel(double threshold)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

writeToDot

public void writeToDot(java.io.Writer bw)
                throws java.io.IOException
Throws:
java.io.IOException

getNodeId

protected java.lang.String getNodeId(int index)

clusterGraph

protected void clusterGraph()

victimLeft

protected boolean victimLeft(boolean[] victimMap)