ikr.simlib.distributions.continuous

## Class UniformDistribution

• All Implemented Interfaces:
ReflectionConstructable, ReflectionConstructable3<SimNode,Parameters,RandomNumberGenerator>

public class UniformDistribution
extends ContinuousDistribution
Uniform Distribution
Meaning: All (continuous) values $$t$$ in the interval $$b_l < t < b_u$$ appear with the same probability lower limit $$b_l$$ upper limit $$b_u > b_l$$ $$P(T=t) = f(t) = \begin{cases} \frac{1}{b_u -b_l} &\mbox{for } b_l \le t \le b_u \\ 0 &\mbox{else } \end{cases}$$ $$P(T \le t) = F(t) = \begin{cases} 0 &\mbox{for } t < b_l \\ \frac{t-b_l}{b_u-b_l} &\mbox{for } b_l \le t < b_u \\ 1 &\mbox{for } t \ge b_l \end{cases}$$ $$E[T]= \frac{b_l + b_u}{2}$$ $$VAR[T]= \frac{(b_u - b_l)^2}{12}$$ $$c_T= \frac{1}{\sqrt{3}} \cdot \frac{b_u-b_l}{b_u+b_l}$$ $$\phi(s) = \frac{1}{b_u-b_l} \cdot \frac{exp(-b_l s) - exp(-b_u s)}{s}$$ [...].Distribution = Uniform [...].Distribution.LowerBound = 1.5 [...].Distribution.UpperBound = 13.5
• ### Field Detail

• #### lowerBound

public final double lowerBound
• #### interval

public final double interval
• ### Constructor Detail

• #### UniformDistribution

public UniformDistribution(double lowerBound,
double upperBound,
RandomNumberGenerator rng)
• #### UniformDistribution

public UniformDistribution(double lowerBound,
double upperBound)