Interface ArrivalsHeadwayGenerator.HeadwayDistribution
-
- Enclosing class:
- ArrivalsHeadwayGenerator
public static interface ArrivalsHeadwayGenerator.HeadwayDistribution
Headway distribution.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 5 dec. 2017
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Field Summary
Fields Modifier and Type Field Description static ArrivalsHeadwayGenerator.HeadwayDistribution
CONSTANT
Constant headway.static ArrivalsHeadwayGenerator.HeadwayDistribution
EXPONENTIAL
Exponential headway distribution.static ArrivalsHeadwayGenerator.HeadwayDistribution
LOGNORMAL
Log-normal headway distribution (variance = 1.0).static ArrivalsHeadwayGenerator.HeadwayDistribution
TRI_EXP
Triangular (left side, mean 2/3) and exponential (right side, mean 4/3) headway distribution.static ArrivalsHeadwayGenerator.HeadwayDistribution
TRIANGULAR
Triangular headway distribution.static ArrivalsHeadwayGenerator.HeadwayDistribution
UNIFORM
Uniform headway distribution.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
draw(StreamInterface randomStream)
Draws a randomized headway factor.String
getName()
Returns the distribution name.
-
-
-
Field Detail
-
CONSTANT
static final ArrivalsHeadwayGenerator.HeadwayDistribution CONSTANT
Constant headway.
-
EXPONENTIAL
static final ArrivalsHeadwayGenerator.HeadwayDistribution EXPONENTIAL
Exponential headway distribution.
-
UNIFORM
static final ArrivalsHeadwayGenerator.HeadwayDistribution UNIFORM
Uniform headway distribution.
-
TRIANGULAR
static final ArrivalsHeadwayGenerator.HeadwayDistribution TRIANGULAR
Triangular headway distribution.
-
TRI_EXP
static final ArrivalsHeadwayGenerator.HeadwayDistribution TRI_EXP
Triangular (left side, mean 2/3) and exponential (right side, mean 4/3) headway distribution.
-
LOGNORMAL
static final ArrivalsHeadwayGenerator.HeadwayDistribution LOGNORMAL
Log-normal headway distribution (variance = 1.0).
-
-
Method Detail
-
draw
double draw(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
-
-