Class ContinuousDistLength
java.lang.Object
org.opentrafficsim.core.units.distributions.AbstractContinuousDistScalar
org.opentrafficsim.core.units.distributions.ContinuousDistDoubleScalar.Rel<Length,LengthUnit>
org.opentrafficsim.core.units.distributions.ContinuousDistLength
- All Implemented Interfaces:
Serializable,Generator<Length>
public class ContinuousDistLength extends ContinuousDistDoubleScalar.Rel<Length,LengthUnit>
Continuously distributed length.
Copyright (c) 2013-2020 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 ContinuousDistLength(DistContinuous distribution, LengthUnit unit) -
Method Summary
Methods inherited from class org.opentrafficsim.core.units.distributions.AbstractContinuousDistScalar
getDisplayUnit, getDistribution
-
Constructor Details
-
ContinuousDistLength
- Parameters:
distribution- DistContinuous; distributionunit- LengthUnit; units
-
-
Method Details
-
draw
Generate the next object.- Specified by:
drawin interfaceGenerator<Length>- Overrides:
drawin classContinuousDistDoubleScalar.Rel<Length,LengthUnit>- Returns:
- a drawn number from the distribution in the given unit.
-
toString
- Overrides:
toStringin classContinuousDistDoubleScalar.Rel<Length,LengthUnit>
-