Package tools.descartes.dlim.extractor
Class ModelExtractor
java.lang.Object
tools.descartes.dlim.extractor.ModelExtractor
Offers the default model extraction processes as used by the dlim.exporter plugin.
-
Method Summary
Modifier and TypeMethodDescriptionstatic HLDlimParameterContainer
extractArrivalRateFileIntoParameters
(String arrivalRateFilePath, double period, double offset, int seasonalsPerTrend, String seasonalShape, String trendShape, String operatorLiteral, boolean extractNoise) Extract HLDLIM parameters from an arrival rate list.static void
extractArrivalRateFileIntoSequenceBinarySplits
(Sequence root, List<ArrivalRateTuple> arrList, double period, int seasonalsPerTrend, String seasonalShape, String trendShape, String operatorLiteral, boolean extractNoise) Extract an arrival Rate file using the simple extraction process.static void
extractArrivalRateFileIntoSequenceNoSplits
(Sequence root, List<ArrivalRateTuple> arrList, double period, int seasonalsPerTrend, String seasonalShape, String trendShape, String operatorLiteral, boolean extractNoise) Extract an arrival Rate file using the simple extraction process.static void
extractSequenceFromArrivalRateFilePeriodic
(Sequence root, List<ArrivalRateTuple> arrList, double period, List<int[]> seasonalsPerTrendList, String seasonalShape, String trendShape, String operatorLiteral, boolean extractNoise) Extract an arrival rate file using the periodic extraction process.static void
reduceArrivalRateListNoise
(List<ArrivalRateTuple> arrivalRates, double period) Reduces noise of a given arrival rate list with an expected seasonal period.
-
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 rootarrList
- the read list of arrival ratesperiod
- the seasonal periodseasonalsPerTrend
- the seasonals per trend (trend segment length)seasonalShape
- the seasonal shapetrendShape
- the trend shapeoperatorLiteral
- 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 rootarrList
- the read list of arrival ratesperiod
- the seasonal periodseasonalsPerTrend
- the seasonals per trend (trend segment length)seasonalShape
- the seasonal shapetrendShape
- the trend shapeoperatorLiteral
- 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 rootarrList
- the arr listperiod
- the periodseasonalsPerTrendList
- the seasonals per trend listseasonalShape
- the seasonal shapetrendShape
- the trend shapeoperatorLiteral
- the operator literalextractNoise
- 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 pathperiod
- the periodoffset
- the offsetseasonalsPerTrend
- the seasonals per trendseasonalShape
- the seasonal shapetrendShape
- the trend shapeoperatorLiteral
- the operator literalextractNoise
- the extract noise- Returns:
- the HL dlim parameter container
- Throws:
CalibrationException
- the calibration exception
-
reduceArrivalRateListNoise
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.
-