|
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.RandomVariateGenWithShift
public class RandomVariateGenWithShift
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 nextDouble()
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 | |
---|---|
RandomVariateGenWithShift(RandomVariateGen gen,
double shift)
Constructs a new random variate generator with underlying generator gen, and shift shift. |
Method Summary | |
---|---|
Distribution |
getDistribution()
|
RandomVariateGen |
getRandomVariateGenerator()
Returns the random variate generator being used by this object. |
double |
getShift()
Returns the current value of the shift ![]() |
RandomStream |
getStream()
|
double |
nextDouble()
|
void |
setShift(double shift)
Sets the current value of the shift to shift. |
void |
setStream(RandomStream stream)
|
Methods inherited from class umontreal.iro.lecuyer.randvar.RandomVariateGen |
---|
nextArrayOfDouble, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RandomVariateGenWithShift(RandomVariateGen gen, double shift)
gen
- the generator being used.shift
- the shift Method Detail |
---|
public double getShift()
public void setShift(double shift)
shift
- the new value of the shift.public RandomVariateGen getRandomVariateGenerator()
public Distribution getDistribution()
getDistribution
in class RandomVariateGen
public RandomStream getStream()
getStream
in class RandomVariateGen
public double nextDouble()
nextDouble
in class RandomVariateGen
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 |