public class PiecewiseLinearDistribution extends ContinuousDistribution
Modifier and Type | Field and Description |
---|---|
DiscreteDistribution |
noOfSlotsDist |
double |
slotDuration |
rng
Constructor and Description |
---|
PiecewiseLinearDistribution(DiscreteDistribution noOfSlotsDist,
double slotDuration) |
PiecewiseLinearDistribution(DiscreteDistribution noOfSlotsDist,
double slotDuration,
RandomNumberGenerator rng) |
Modifier and Type | Method and Description |
---|---|
double |
next()
Create random numbers
|
getDefaultRNG, getRandomNumberGenerator, reset
public final DiscreteDistribution noOfSlotsDist
public final double slotDuration
public PiecewiseLinearDistribution(DiscreteDistribution noOfSlotsDist, double slotDuration, RandomNumberGenerator rng)
public PiecewiseLinearDistribution(DiscreteDistribution noOfSlotsDist, double slotDuration)
public double next()
ContinuousDistribution
next
in class ContinuousDistribution