Package org.opentrafficsim.core.distributions
Generic implementation of a set of objects with defined probabilities / frequencies.
Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version Mar 1, 2016
- Author:
- Alexander Verbraeck, Peter Knoppers
-
Interface Summary Interface Description Generator<O> Interface for classes that have a draw method with no arguments. -
Class Summary Class Description ConstantGenerator<O> Generator implementation for a constant value.Distribution<O> Generic implementation of a set of objects that have a draw method with corresponding probabilities / frequencies.Distribution.FrequencyAndObject<O> Immutable storage for a frequency (or probability) plus a Generator. -
Exception Summary Exception Description ProbabilityException Exception thrown when provided probabilities or frequencies are invalid.