public final class ParseDistribution 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
public static nl.tudelft.simulation.jstats.distributions.DistDiscrete makeDistDiscrete(Map<String,StreamInformation> streamMap, DISCRETEDISTTYPE distType) throws XmlParserException
streamMap - map with stream informationdistType - the distribution to parseXmlParserException - in case distribution unknown or parameter number does not match.public static nl.tudelft.simulation.jstats.distributions.DistContinuous makeDistContinuous(Map<String,StreamInformation> streamMap, CONTDISTTYPE distType) throws XmlParserException
streamMap - map with stream informationdistType - the distribution to parseXmlParserException - in case distribution unknown or parameter number does not match.public static ContinuousDistDoubleScalar.Rel<Length,LengthUnit> parseLengthDist(Map<String,StreamInformation> streamMap, LENGTHDISTTYPE lengthDist) throws XmlParserException
UNIFORM(1, 3) m.streamMap - the map with streams from the RUN taglengthDist - the tag to parseXmlParserException - in case of a parse error.public static ContinuousDistDoubleScalar.Abs<Position,PositionUnit,LengthUnit> parsePositionDist(Map<String,StreamInformation> streamMap, POSITIONDISTTYPE positionDist) throws XmlParserException
UNIFORM(1, 3) m.streamMap - the map with streams from the RUN tagpositionDist - the tag to parseXmlParserException - in case of a parse error.public static ContinuousDistDoubleScalar.Rel<Duration,DurationUnit> parseDurationDist(Map<String,StreamInformation> streamMap, DURATIONDISTTYPE durationDist) throws XmlParserException
UNIFORM(1, 3) s.streamMap - the map with streams from the RUN tagdurationDist - the tag to parseXmlParserException - in case of a parse error.public static ContinuousDistDoubleScalar.Abs<Time,TimeUnit,DurationUnit> parseTimeDist(Map<String,StreamInformation> streamMap, TIMEDISTTYPE timeDist) throws XmlParserException
UNIFORM(1, 3) s.streamMap - the map with streams from the RUN tagtimeDist - the tag to parseXmlParserException - in case of a parse error.public static ContinuousDistDoubleScalar.Rel<Speed,SpeedUnit> parseSpeedDist(Map<String,StreamInformation> streamMap, SPEEDDISTTYPE speedDist) throws XmlParserException
UNIFORM(1, 3) m/s.streamMap - the map with streams from the RUN tagspeedDist - the tag to parseXmlParserException - in case of a parse error.public static ContinuousDistDoubleScalar.Rel<Acceleration,AccelerationUnit> parseAccelerationDist(Map<String,StreamInformation> streamMap, ACCELERATIONDISTTYPE accelerationDist) throws XmlParserException
UNIFORM(1, 3) s.streamMap - the map with streams from the RUN tagaccelerationDist - the tag to parseXmlParserException - in case of a parse error.public static ContinuousDistDoubleScalar.Rel<Frequency,FrequencyUnit> parseFrequencyDist(Map<String,StreamInformation> streamMap, FREQUENCYDISTTYPE frequencyDist) throws XmlParserException
UNIFORM(1, 3) s.streamMap - the map with streams from the RUN tagfrequencyDist - the tag to parseXmlParserException - in case of a parse error.public static ContinuousDistDoubleScalar.Rel<LinearDensity,LinearDensityUnit> parseLinearDensityDist(Map<String,StreamInformation> streamMap, LINEARDENSITYDISTTYPE linearDensityDist) throws XmlParserException
UNIFORM(1, 3) s.streamMap - the map with streams from the RUN taglinearDensityDist - the tag to parseXmlParserException - in case of a parse error.Copyright © 2014–2019 Delft University of Technology. All rights reserved.