|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectumontreal.iro.lecuyer.randvar.RandomVariateGen
umontreal.iro.lecuyer.randvar.RandomVariateGenInt
umontreal.iro.lecuyer.randvar.RandomVariateGenIntWithShift
public class RandomVariateGenIntWithShift
Random variate generator applying a shift to the generated values. This
generator uses another random variate generator to generate variates. For
each variate v, the nextInt()
method of this generator returns
v - , where
∈
is a constant, user-defined shift.
Field Summary |
---|
Fields inherited from class umontreal.iro.lecuyer.randvar.RandomVariateGen |
---|
dist, stream |
Constructor Summary | |
---|---|
RandomVariateGenIntWithShift(RandomVariateGenInt gen,
int shift)
Constructs a new random variate generator with underlying generator gen, and shift shift. |
Method Summary | |
---|---|
DiscreteDistributionInt |
getDistribution()
|
RandomVariateGenInt |
getRandomVariateGenerator()
Returns the random variate generator being used by this object. |
int |
getShift()
Returns the current value of the shift ![]() |
RandomStream |
getStream()
|
int |
nextInt()
|
void |
setShift(int shift)
Sets the current value of the shift to shift. |
void |
setStream(RandomStream stream)
|
Methods inherited from class umontreal.iro.lecuyer.randvar.RandomVariateGenInt |
---|
nextArrayOfInt |
Methods inherited from class umontreal.iro.lecuyer.randvar.RandomVariateGen |
---|
nextArrayOfDouble, nextDouble, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RandomVariateGenIntWithShift(RandomVariateGenInt gen, int shift)
gen
- the generator being used.shift
- the shift Method Detail |
---|
public int getShift()
public void setShift(int shift)
shift
- the new value of the shift.public RandomVariateGenInt getRandomVariateGenerator()
public DiscreteDistributionInt getDistribution()
getDistribution
in class RandomVariateGenInt
public RandomStream getStream()
getStream
in class RandomVariateGen
public int nextInt()
nextInt
in class RandomVariateGenInt
public void setStream(RandomStream stream)
setStream
in class RandomVariateGen
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |