Package tools.descartes.dlim.assistant
Class Calibrator
java.lang.Object
tools.descartes.dlim.assistant.Calibrator
Provides methods for the calibration of interpolated function attributes. The
returned value is always the attribute value, which results in the overall
model output of desiredValue.
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
calibrateBurstPeakValue
(double desiredValue, Burst burst, ModelEvaluator evaluator) Sets trend.start in a way that results in the entire model producing desiredValue as output at the peak of the burst.static double
calibrateTrendEndValue
(double desiredValue, Trend trend, ModelEvaluator evaluator) Sets trend.end in a way that results in the entire model producing desiredValue as output at the end of the trend.static double
calibrateTrendStartValue
(double desiredValue, Trend trend, ModelEvaluator evaluator) Sets trend.start in a way that results in the entire model producing desiredValue as output at the beginning of the trend.
-
Method Details
-
calibrateTrendStartValue
public static double calibrateTrendStartValue(double desiredValue, Trend trend, ModelEvaluator evaluator) throws CalibrationException Sets trend.start in a way that results in the entire model producing desiredValue as output at the beginning of the trend.- Parameters:
desiredValue
- the desired valuetrend
- the trendevaluator
- must be initialized using IGeneratorConstants.CALIBRATION- Returns:
- the double
- Throws:
CalibrationException
- If the different values at the Trend's beginning time have no effect on the model output.
-
calibrateTrendEndValue
public static double calibrateTrendEndValue(double desiredValue, Trend trend, ModelEvaluator evaluator) throws CalibrationException Sets trend.end in a way that results in the entire model producing desiredValue as output at the end of the trend.- Parameters:
desiredValue
- the desired valuetrend
- the trendevaluator
- must be initialized using IGeneratorConstants.CALIBRATION- Returns:
- the double
- Throws:
CalibrationException
- If the different values at the Trend's end time have no effect on the model output.
-
calibrateBurstPeakValue
public static double calibrateBurstPeakValue(double desiredValue, Burst burst, ModelEvaluator evaluator) throws CalibrationException Sets trend.start in a way that results in the entire model producing desiredValue as output at the peak of the burst.- Parameters:
desiredValue
- the desired valueburst
- the burstevaluator
- must be initialized using IGeneratorConstants.CALIBRATION- Returns:
- the double
- Throws:
CalibrationException
- If the different values at the Trend's beginning time have no effect on the model output.
-