Interface ArrivalsHeadwayGenerator.HeadwayDistribution
- Enclosing class:
- ArrivalsHeadwayGenerator
public static interface ArrivalsHeadwayGenerator.HeadwayDistribution
Headway distribution.
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, Wouter Schakel
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ArrivalsHeadwayGenerator.HeadwayDistribution
Constant headway.static final ArrivalsHeadwayGenerator.HeadwayDistribution
Exponential headway distribution.static final ArrivalsHeadwayGenerator.HeadwayDistribution
Log-normal headway distribution (variance = 1.0).static final ArrivalsHeadwayGenerator.HeadwayDistribution
Triangular (left side, mean 2/3) and exponential (right side, mean 4/3) headway distribution.static final ArrivalsHeadwayGenerator.HeadwayDistribution
Triangular headway distribution.static final ArrivalsHeadwayGenerator.HeadwayDistribution
Uniform headway distribution. -
Method Summary
-
Field Details
-
CONSTANT
Constant headway. -
EXPONENTIAL
Exponential headway distribution. -
UNIFORM
Uniform headway distribution. -
TRIANGULAR
Triangular headway distribution. -
TRI_EXP
Triangular (left side, mean 2/3) and exponential (right side, mean 4/3) headway distribution. -
LOGNORMAL
Log-normal headway distribution (variance = 1.0).
-
-
Method Details
-
draw
double draw(nl.tudelft.simulation.jstats.streams.StreamInterface randomStream) Draws a randomized headway factor. The average value returned is always 1.0. The returned value is applied on the demand pattern by (reversed) integration to derive actual headways.- Parameters:
randomStream
- StreamInterface; random number stream- Returns:
- randomized headway factor
-
getName
String getName()Returns the distribution name.- Returns:
- distribution name
-