Class DiscreteDistLinearDensity
java.lang.Object
org.opentrafficsim.core.units.distributions.AbstractDiscreteDistScalar
org.opentrafficsim.core.units.distributions.DiscreteDistDoubleScalar.Rel<LinearDensity,LinearDensityUnit>
org.opentrafficsim.core.units.distributions.DiscreteDistLinearDensity
- All Implemented Interfaces:
Serializable
public class DiscreteDistLinearDensity extends DiscreteDistDoubleScalar.Rel<LinearDensity,LinearDensityUnit>
Discretely distributed linear density.
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.
- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 29 aug. 2018
- Author:
- Wouter Schakel
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description DiscreteDistLinearDensity(DistDiscrete distribution, LinearDensityUnit unit) -
Method Summary
Modifier and Type Method Description LinearDensitydraw()StringtoString()Methods inherited from class org.opentrafficsim.core.units.distributions.AbstractDiscreteDistScalar
getDistribution, getUnit
-
Constructor Details
-
DiscreteDistLinearDensity
- Parameters:
distribution- DistDiscrete; distributionunit- LinearDensityUnit; units
-
-
Method Details
-
draw
- Overrides:
drawin classDiscreteDistDoubleScalar.Rel<LinearDensity,LinearDensityUnit>- Returns:
- a drawn number from the distribution in the given unit.
-
toString
- Overrides:
toStringin classDiscreteDistDoubleScalar.Rel<LinearDensity,LinearDensityUnit>
-