Class DistributionScaling

java.lang.Object
jline.lang.processes.DistributionScaling

public class DistributionScaling extends Object
Rate-scaled copies of a distribution, preserving its shape.

Java counterpart of MATLAB's dist_scale_rate.m.

See Also:
  • Method Details

    • scaleRate

      public static Distribution scaleRate(Distribution distrib, double factor)
      Returns a new distribution whose rate is factor times the rate of distrib, i.e. the time-scaled variable X/factor. The scaling is exact: every moment of order n is divided by factor^n, so the mean is divided by factor while the SCV, the skewness and the whole shape of the distribution are preserved.

      The scaled object is rebuilt from the parameters of the original, rather than by rescaling its Markovian representation, so that the parameter list stays coherent with the distribution family. Solvers that serialize the model (JMT, LDES) read the parameters, and would otherwise export the unscaled process.

      This is the perturbation primitive of the finite-difference branch of getSensitivityTable: scaling the rate at a station-class by (1+h) is exactly the perturbation the derivative d(.)/d(rate) is taken along.

      Parameters:
      distrib - a distribution
      factor - positive scaling factor for the rate
      Returns:
      a new distribution of the same family with rate*factor