public static interface ArrivalsHeadwayGenerator.HeadwayDistribution
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Field and 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.
|
Modifier and Type | Method and Description |
---|---|
double |
draw(StreamInterface randomStream)
Draws a randomized headway factor.
|
String |
getName()
Returns the distribution name.
|
static final ArrivalsHeadwayGenerator.HeadwayDistribution CONSTANT
static final ArrivalsHeadwayGenerator.HeadwayDistribution EXPONENTIAL
static final ArrivalsHeadwayGenerator.HeadwayDistribution UNIFORM
static final ArrivalsHeadwayGenerator.HeadwayDistribution TRIANGULAR
static final ArrivalsHeadwayGenerator.HeadwayDistribution TRI_EXP
static final ArrivalsHeadwayGenerator.HeadwayDistribution LOGNORMAL
double draw(StreamInterface randomStream)
randomStream
- StreamInterface; random number streamString getName()
Copyright © 2014–2019 Delft University of Technology. All rights reserved.