|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsim.util.distribution.AbstractDistribution
sim.util.distribution.AbstractDiscreteDistribution
sim.util.distribution.Zeta
public class Zeta
Zeta distribution.
Valid parameter ranges: ro > 0 and pk >= 0.
Instance methods operate on a user supplied uniform random number generator; they are unsynchronized.
Implementation:
J. Dagpunar (1988): Principles of Random Variate Generation, Clarendon Press, Oxford.
| Field Summary | |
|---|---|
protected double |
c
|
protected double |
d
|
protected double |
maxlongint
|
protected double |
pk
|
protected double |
pk_prev
|
protected double |
ro
|
protected double |
ro_prev
|
| Fields inherited from class sim.util.distribution.AbstractDistribution |
|---|
randomGenerator |
| Constructor Summary | |
|---|---|
Zeta(double ro,
double pk,
MersenneTwisterFast randomGenerator)
Constructs a Zeta distribution. |
|
| Method Summary | |
|---|---|
protected long |
generateZeta(double ro,
double pk,
MersenneTwisterFast randomGenerator)
Returns a zeta distributed random number. |
int |
nextInt()
Returns a random number from the distribution. |
void |
setState(double ro,
double pk)
Sets the parameters. |
java.lang.String |
toString()
Returns a String representation of the receiver. |
| Methods inherited from class sim.util.distribution.AbstractDiscreteDistribution |
|---|
nextDouble |
| Methods inherited from class sim.util.distribution.AbstractDistribution |
|---|
apply, apply, getRandomGenerator, setRandomGenerator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected double ro
protected double pk
protected double c
protected double d
protected double ro_prev
protected double pk_prev
protected double maxlongint
| Constructor Detail |
|---|
public Zeta(double ro,
double pk,
MersenneTwisterFast randomGenerator)
| Method Detail |
|---|
protected long generateZeta(double ro,
double pk,
MersenneTwisterFast randomGenerator)
public int nextInt()
nextInt in class AbstractDiscreteDistribution
public void setState(double ro,
double pk)
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||