Class ModelExtractor

java.lang.Object
tools.descartes.dlim.extractor.ModelExtractor

public final class ModelExtractor extends Object
Offers the default model extraction processes as used by the dlim.exporter plugin.
  • Method Details

    • extractArrivalRateFileIntoSequenceBinarySplits

      public static void extractArrivalRateFileIntoSequenceBinarySplits(Sequence root, List<ArrivalRateTuple> arrList, double period, int seasonalsPerTrend, String seasonalShape, String trendShape, String operatorLiteral, boolean extractNoise) throws CalibrationException
      Extract an arrival Rate file using the simple extraction process.
      Parameters:
      root - the root
      arrList - the read list of arrival rates
      period - the seasonal period
      seasonalsPerTrend - the seasonals per trend (trend segment length)
      seasonalShape - the seasonal shape
      trendShape - the trend shape
      operatorLiteral - the operator literal (how is the trend to be applied to the seasonal part)
      extractNoise - true, if noise is to be reduced and extracted
      Throws:
      CalibrationException - exception if calibration is ineffective (devision by 0 or unused function)
    • extractArrivalRateFileIntoSequenceNoSplits

      public static void extractArrivalRateFileIntoSequenceNoSplits(Sequence root, List<ArrivalRateTuple> arrList, double period, int seasonalsPerTrend, String seasonalShape, String trendShape, String operatorLiteral, boolean extractNoise) throws CalibrationException
      Extract an arrival Rate file using the simple extraction process.
      Parameters:
      root - the root
      arrList - the read list of arrival rates
      period - the seasonal period
      seasonalsPerTrend - the seasonals per trend (trend segment length)
      seasonalShape - the seasonal shape
      trendShape - the trend shape
      operatorLiteral - the operator literal (how is the trend to be applied to the seasonal part)
      extractNoise - true, if noise is to be reduced and extracted
      Throws:
      CalibrationException - exception if calibration is ineffective (devision by 0 or unused function)
    • extractSequenceFromArrivalRateFilePeriodic

      public static void extractSequenceFromArrivalRateFilePeriodic(Sequence root, List<ArrivalRateTuple> arrList, double period, List<int[]> seasonalsPerTrendList, String seasonalShape, String trendShape, String operatorLiteral, boolean extractNoise) throws CalibrationException
      Extract an arrival rate file using the periodic extraction process.
      Parameters:
      root - the root
      arrList - the arr list
      period - the period
      seasonalsPerTrendList - the seasonals per trend list
      seasonalShape - the seasonal shape
      trendShape - the trend shape
      operatorLiteral - the operator literal
      extractNoise - the extract noise
      Throws:
      CalibrationException - the calibration exception
    • extractArrivalRateFileIntoParameters

      public static HLDlimParameterContainer extractArrivalRateFileIntoParameters(String arrivalRateFilePath, double period, double offset, int seasonalsPerTrend, String seasonalShape, String trendShape, String operatorLiteral, boolean extractNoise) throws CalibrationException
      Extract HLDLIM parameters from an arrival rate list.
      Parameters:
      arrivalRateFilePath - the arrival rate file path
      period - the period
      offset - the offset
      seasonalsPerTrend - the seasonals per trend
      seasonalShape - the seasonal shape
      trendShape - the trend shape
      operatorLiteral - the operator literal
      extractNoise - the extract noise
      Returns:
      the HL dlim parameter container
      Throws:
      CalibrationException - the calibration exception
    • reduceArrivalRateListNoise

      public static void reduceArrivalRateListNoise(List<ArrivalRateTuple> arrivalRates, double period)
      Reduces noise of a given arrival rate list with an expected seasonal period.
      Parameters:
      arrivalRates - The arrival rates for which to reduce noise.
      period - Seasonal period within the arrival rate list.