Class DiscreteDistAngle
- java.lang.Object
-
- org.opentrafficsim.core.units.distributions.AbstractDiscreteDistScalar
-
- org.opentrafficsim.core.units.distributions.DiscreteDistDoubleScalar.Rel<Angle,AngleUnit>
-
- org.opentrafficsim.core.units.distributions.DiscreteDistAngle
-
- All Implemented Interfaces:
Serializable
public class DiscreteDistAngle extends DiscreteDistDoubleScalar.Rel<Angle,AngleUnit>
Discretely distributed angle.Copyright (c) 2013-2022 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 DiscreteDistAngle(DistDiscrete distribution, AngleUnit unit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Angle
draw()
String
toString()
-
Methods inherited from class org.opentrafficsim.core.units.distributions.AbstractDiscreteDistScalar
getDistribution, getUnit
-
-
-
-
Constructor Detail
-
DiscreteDistAngle
public DiscreteDistAngle(DistDiscrete distribution, AngleUnit unit)
- Parameters:
distribution
- DistDiscrete; distributionunit
- AngleUnit; units
-
-
Method Detail
-
draw
public Angle draw()
- Overrides:
draw
in classDiscreteDistDoubleScalar.Rel<Angle,AngleUnit>
- Returns:
- a drawn number from the distribution in the given unit.
-
toString
public final String toString()
- Overrides:
toString
in classDiscreteDistDoubleScalar.Rel<Angle,AngleUnit>
-
-