Class DiffAnalyzer

java.lang.Object
tools.descartes.dlim.generator.DiffAnalyzer

public class DiffAnalyzer extends Object
Calculates the difference between a DLIM and an arrival rate .txt file.
  • Constructor Details

    • DiffAnalyzer

      public DiffAnalyzer(ModelEvaluator evaluator, String projectPath)
      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 evaluator
      projectPath - Path of the eclipse modeling project (used for output Path determination)
  • Method Details

    • calculateDiff

      public List<Double> calculateDiff(List<ArrivalRateTuple> readArrivalRates, double offset)
      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