public final class Distributions extends Object
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.
$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $,
initial version Jul 23, 2015
Modifier and Type | Method and Description |
---|---|
static ContinuousDistDoubleScalar.Rel<Duration,DurationUnit> |
parseDurationDist(String s)
Parse a relative time distribution, e.g.
|
static ContinuousDistDoubleScalar.Rel<Length,LengthUnit> |
parseLengthDist(String s)
Parse a relative length distribution, e.g.
|
static ContinuousDistDoubleScalar.Abs<Position,PositionUnit,LengthUnit> |
parsePositionDist(String s)
Parse an absolute length distribution, e.g.
|
static ContinuousDistDoubleScalar.Rel<Speed,SpeedUnit> |
parseSpeedDist(String s)
Parse a relative speed distribution, e.g.
|
static ContinuousDistDoubleScalar.Abs<Time,TimeUnit,DurationUnit> |
parseTimeDist(String s)
Parse an absolute time distribution, e.g.
|
public static ContinuousDistDoubleScalar.Rel<Length,LengthUnit> parseLengthDist(String s) throws NetworkException
UNIFORM(1, 3) m
.s
- String; the string to be parsed.NetworkException
- in case of a parse error.public static ContinuousDistDoubleScalar.Abs<Position,PositionUnit,LengthUnit> parsePositionDist(String s) throws NetworkException
UNIFORM(1, 3) m
.s
- String; the string to be parsed.NetworkException
- in case of a parse error.public static ContinuousDistDoubleScalar.Rel<Duration,DurationUnit> parseDurationDist(String s) throws NetworkException
UNIFORM(1, 3) s
.s
- String; the string to be parsed.NetworkException
- in case of a parse error.public static ContinuousDistDoubleScalar.Abs<Time,TimeUnit,DurationUnit> parseTimeDist(String s) throws NetworkException
UNIFORM(1, 3) s
.s
- String; the string to be parsed.NetworkException
- in case of a parse error.public static ContinuousDistDoubleScalar.Rel<Speed,SpeedUnit> parseSpeedDist(String s) throws NetworkException
TRIANGULAR(80, 90, 110) km/h
.s
- String; the string to be parsed.NetworkException
- in case of a parse error.Copyright © 2014–2019 Delft University of Technology. All rights reserved.