Package org.opentrafficsim.core.distributions
package org.opentrafficsim.core.distributions
Generic implementation of a set of objects with defined probabilities / frequencies.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers
-
ClassDescriptionGenerator implementation for a constant value.Distribution<O>Generic implementation of a set of objects that have a draw method with corresponding probabilities / frequencies.Immutable storage for a frequency (or probability) plus a Generator.Generator<O>Interface for classes that have a draw method with no arguments.Exception thrown when provided probabilities or frequencies are invalid.