public final class Distributions extends Object
Copyright (c) 2013-2018 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<org.djunits.value.vdouble.scalar.Duration,org.djunits.unit.DurationUnit> |
parseDurationDist(String s)
Parse a relative time distribution, e.g.
|
static ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length,org.djunits.unit.LengthUnit> |
parseLengthDist(String s)
Parse a relative length distribution, e.g.
|
static ContinuousDistDoubleScalar.Abs<org.djunits.value.vdouble.scalar.Position,org.djunits.unit.PositionUnit,org.djunits.unit.LengthUnit> |
parsePositionDist(String s)
Parse an absolute length distribution, e.g.
|
static ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Speed,org.djunits.unit.SpeedUnit> |
parseSpeedDist(String s)
Parse a relative speed distribution, e.g.
|
static ContinuousDistDoubleScalar.Abs<org.djunits.value.vdouble.scalar.Time,org.djunits.unit.TimeUnit,org.djunits.unit.DurationUnit> |
parseTimeDist(String s)
Parse an absolute time distribution, e.g.
|
public static ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length,org.djunits.unit.LengthUnit> parseLengthDist(String s) throws NetworkException
UNIFORM(1, 3) m.s - the string to be parsed.NetworkException - in case of a parse error.public static ContinuousDistDoubleScalar.Abs<org.djunits.value.vdouble.scalar.Position,org.djunits.unit.PositionUnit,org.djunits.unit.LengthUnit> parsePositionDist(String s) throws NetworkException
UNIFORM(1, 3) m.s - the string to be parsed.NetworkException - in case of a parse error.public static ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Duration,org.djunits.unit.DurationUnit> parseDurationDist(String s) throws NetworkException
UNIFORM(1, 3) s.s - the string to be parsed.NetworkException - in case of a parse error.public static ContinuousDistDoubleScalar.Abs<org.djunits.value.vdouble.scalar.Time,org.djunits.unit.TimeUnit,org.djunits.unit.DurationUnit> parseTimeDist(String s) throws NetworkException
UNIFORM(1, 3) s.s - the string to be parsed.NetworkException - in case of a parse error.public static ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Speed,org.djunits.unit.SpeedUnit> parseSpeedDist(String s) throws NetworkException
TRIANGULAR(80, 90, 110) km/h.s - the string to be parsed.NetworkException - in case of a parse error.Copyright © 2014–2018 Delft University of Technology. All rights reserved.