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 Summary

Fields
Modifier and Type Field and Description
double interval
double lowerBound
• ### Fields inherited from class ikr.simlib.distributions.Distribution

rng
• ### Fields inherited from interface ikr.simlib.parameters.reflection.ReflectionConstructable

CREATE_INSTANCE_METHOD_NAME
• ### Constructor Summary

Constructors
Constructor and Description
UniformDistribution(double lowerBound, double upperBound)
UniformDistribution(double lowerBound, double upperBound, RandomNumberGenerator rng)
• ### Method Summary

Methods
Modifier and Type Method and Description
static UniformDistribution createInstance(SimNode ownNode, Parameters pars, RandomNumberGenerator rng)
double next()
Create random numbers
• ### Methods inherited from class ikr.simlib.distributions.Distribution

getDefaultRNG, getRandomNumberGenerator, reset
• ### Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
• ### 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)
• ### Method Detail

• #### createInstance

public static UniformDistribution createInstance(SimNode ownNode,
Parameters pars,
RandomNumberGenerator rng)
• #### next

public double next()
Description copied from class: ContinuousDistribution
Create random numbers
Specified by:
next in class ContinuousDistribution