Package tools.descartes.dlim.generator
Class DiffAnalyzer
java.lang.Object
tools.descartes.dlim.generator.DiffAnalyzer
Calculates the difference between a DLIM and an arrival rate .txt file.
-
Constructor Summary
ConstructorsConstructorDescriptionDiffAnalyzer
(ModelEvaluator evaluator, String projectPath) Create a new DiffAnalyzer for the model that is being evaluated by the evaluator. -
Method Summary
Modifier and TypeMethodDescriptioncalculateDiff
(List<ArrivalRateTuple> readArrivalRates, double offset) Calculate the difference.
-
Constructor Details
-
DiffAnalyzer
Create a new DiffAnalyzer for the model that is being evaluated by the evaluator. All output will be written into the Eclipse project, described by its root path (projectPath).- Parameters:
evaluator
- the model's evaluatorprojectPath
- Path of the eclipse modeling project (used for output Path determination)
-
-
Method Details
-
calculateDiff
Calculate the difference.- Parameters:
readArrivalRates
- The arrival rates as read from the original trace. The file to which the model is to be compared.offset
- the offset of the first arrival rate tuple in the arrival rate file- Returns:
- A list of difference metrices: 1. absolute mean, 2. absolute median, 3. DTW based difference, 4. relative mean, 5. relative median
-