ikr.simlib.distributions.continuous.transform

## Class SlottedDistribution

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

public class SlottedDistribution
extends ContinuousDistribution
Continuous Distribution with a Discrete Value Range
Meaning: Distribution of a real random variable $$T = d \cdot N$$, whereby $$N$$ represents an arbitrarily distributed discrete random variable and $$d$$ the scale factor. Main application is the description of a cell distance in a time slot system e.g., on an ATM link. In this case $$d$$ is the time slot duration. A special case of the compound distribution with a constant "inner distribution". scale factor/time slot duration $$d$$ discrete distribution $$p_i$$ of $$N$$ / the number of time slots $$P(T=t) = f(t) = \sum\limits_{n=0}^{\infty} p_n \cdot \delta (t-nd)$$ $$E[T] = E[N] \cdot d$$ $$VAR[T]= VAR[N] \cdot d^2$$ $$c_T = c_N$$ $$\phi(s) = H(exp(-sd))$$ , if $$H(z)$$ represents the generating function of $$N$$  [...].Distribution = SlottedDistribution [...].Distribution.SlotDuration = 1.5 [...].Distribution.NoOfSlotsDist = Geometric [...].Distribution.NoOfSlotsDist.Mean = 9 
• ### Field Summary

Fields
Modifier and Type Field and Description
DiscreteDistribution noOfSlotsDist
double slotDuration
• ### 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
SlottedDistribution(DiscreteDistribution noOfSlotsDist, double slotDuration)
• ### Method Summary

Methods
Modifier and Type Method and Description
static SlottedDistribution 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

• #### noOfSlotsDist

public final DiscreteDistribution noOfSlotsDist
• #### slotDuration

public final double slotDuration
• ### Constructor Detail

• #### SlottedDistribution

public SlottedDistribution(DiscreteDistribution noOfSlotsDist,
double slotDuration)
• ### Method Detail

• #### createInstance

public static SlottedDistribution 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