Package jline.lang.processes
Class DistributionScaling
java.lang.Object
jline.lang.processes.DistributionScaling
Rate-scaled copies of a distribution, preserving its shape.
Java counterpart of MATLAB's dist_scale_rate.m.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic DistributionscaleRate(Distribution distrib, double factor) Returns a new distribution whose rate isfactortimes the rate ofdistrib, i.e.
-
Method Details
-
scaleRate
Returns a new distribution whose rate isfactortimes the rate ofdistrib, 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 distributionfactor- positive scaling factor for the rate- Returns:
- a new distribution of the same family with rate*factor
-