Class Calibrator

java.lang.Object
tools.descartes.dlim.assistant.Calibrator

public final class Calibrator extends Object
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 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 value
      trend - the trend
      evaluator - 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 value
      trend - the trend
      evaluator - 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 value
      burst - the burst
      evaluator - 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.