Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## sim.util.distribution
Class AbstractDiscreteDistribution

    java.lang.Object
      sim.util.distribution.AbstractDistribution
          sim.util.distribution.AbstractDiscreteDistribution

All Implemented Interfaces:
  java.io.Serializable

Direct Known Subclasses:
  Binomial, EmpiricalWalker, HyperGeometric, NegativeBinomial, Poisson, PoissonSlow, Zeta

    public abstract class AbstractDiscreteDistribution

extends AbstractDistribution

Abstract base class for all discrete distributions.

See Also:
  Serialized Form

Field Summary

Fields inherited from class sim.util.distribution.AbstractDistribution
`randomGenerator`

Constructor Summary
`protected` | `AbstractDiscreteDistribution()` Makes this class non instantiable, but still let's others inherit from it.

Method Summary
`double` | `nextDouble()` Returns a random number from the distribution; returns `(double) nextInt()`.
`abstract int` | `nextInt()` Returns a random number from the distribution.

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, toString, wait, wait, wait`

Constructor Detail

### AbstractDiscreteDistribution

    protected AbstractDiscreteDistribution()

  Makes this class non instantiable, but still let's others inherit from it.

Method Detail

### nextDouble

    public double nextDouble()

  Returns a random number from the distribution; returns `(double) nextInt()`.

  Specified by:
    `nextDouble` in class `AbstractDistribution`

### nextInt

    public abstract int nextInt()

  Returns a random number from the distribution.

  Overrides:
    `nextInt` in class `AbstractDistribution`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD