|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.processmining.analysis.performance.TransitionAnalysis
public class TransitionAnalysis
This is class is needed to calculate metrics concerning two transitions. Most importantly, the (avg,min,max etc.) time-in-between the two transitions can be calculated. Where time in between two transitions for a certain process instance is the time between the first firing of the one transition and the first firing of the other transition.
Constructor Summary | |
---|---|
TransitionAnalysis(ExtendedTransition lastTrans,
ExtendedTransition otherTrans)
Initialize object of TransitionAnalysisResult with transitions lastTrans and otherTrans |
Method Summary | |
---|---|
void |
calculateMetrics(java.util.ArrayList piList,
int fitOption,
java.util.HashSet failedInstances)
Calculates the average, maximal and minimum time tokens spend between the two transitions, and the standard deviation in this time, and averages of the fastest, slowest and normal time-in-betweens. |
void |
exportToFile(java.util.ArrayList piList,
java.io.File file,
long divider,
java.lang.String sort,
int fitOption)
Exports all time-in-between measurements corresponding to this TransitionAnalysis to a comma-seperated text-file. |
double[] |
getAverageTimes(double fastestPercentage,
double slowestPercentage)
Calculates the average of the (fastestpercentage) fast traces, the (slowestPercentage) slow traces and the (100% - fastestPercentage - slowestPercentage) normal speed traces and returns these averages in an array, where [0]: avg fast time in between [1]: avg slow time in between [2]: avg middle time in between |
long |
getFrequency()
Returns the frequency of process instances in which both transitions appear. |
double |
getMaxTime()
Returns the maximal time tokens spend between the two transitions. |
double |
getMeanTime()
Returns the average time tokens spend between the two transitions. |
double |
getMinTime()
Returns the minimum time tokens spend between the two transitions. |
int[] |
getSizes(double fastestPercentage,
double slowestPercentage)
Returns an array containing the number of process instances that are considered to be fast, i.e. |
double |
getStdevTimeInBetween()
Calculates and returns the value of the standard deviation of the time-in-between transition last and transition other. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransitionAnalysis(ExtendedTransition lastTrans, ExtendedTransition otherTrans)
lastTrans
- ExtendedTransition: one of the two transitionsotherTrans
- ExtendedTransition: one of the two transitionsMethod Detail |
---|
public void calculateMetrics(java.util.ArrayList piList, int fitOption, java.util.HashSet failedInstances)
piList
- ArrayList: The process instances on which calculations are
basedfitOption
- int: The fit option used (how to deal with non-conformance)public void exportToFile(java.util.ArrayList piList, java.io.File file, long divider, java.lang.String sort, int fitOption) throws java.io.IOException
piList
- ArrayList: the Process instances usedfile
- File: the file to which the measurements should be exporteddivider
- long: the time divider usedsort
- String: the time sort usedfitOption
- int: The fit option used (how to deal with non-conformance) *
java.io.IOException
public double getMeanTime()
public double getMaxTime()
public double getMinTime()
public double getStdevTimeInBetween()
public double[] getAverageTimes(double fastestPercentage, double slowestPercentage)
fastestPercentage
- double: the percentage of measurements that
is to be counted as fastslowestPercentage
- double: the percentage of measurements that
is to be counted as slow
public int[] getSizes(double fastestPercentage, double slowestPercentage)
fastestPercentage
- double: the percentage of measurements that
is to be counted as fastslowestPercentage
- double: the percentage of measurements that
is to be counted as slow
public long getFrequency()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |