Class AbstractDiscreteDistScalar
java.lang.Object
org.opentrafficsim.core.units.distributions.AbstractDiscreteDistScalar
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DiscreteDistDoubleScalar.Abs,DiscreteDistDoubleScalar.Rel,DiscreteDistFloatScalar.Abs,DiscreteDistFloatScalar.Rel
public abstract class AbstractDiscreteDistScalar extends Object implements Serializable
Discrete distribution with unit.
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-26 01:01:13 +0200 (Sun, 26 Jul 2015) $, @version $Revision: 1155 $, by $Author: averbraeck $,
initial version Feb 2, 2015
- Author:
- Alexander Verbraeck
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractDiscreteDistScalar(long constant, Unit<?> unit)protectedAbstractDiscreteDistScalar(DistDiscrete distribution, Unit<?> unit) -
Method Summary
Modifier and Type Method Description DistDiscretegetDistribution()Unit<?>getUnit()StringtoString()
-
Constructor Details
-
AbstractDiscreteDistScalar
- Parameters:
distribution- DistDiscrete; the wrapped distribution function.unit- Unit<?>; the unit.
-
AbstractDiscreteDistScalar
- Parameters:
constant- long; the constant value.unit- Unit<?>; the unit.
-
-
Method Details
-
getDistribution
- Returns:
- distribution.
-
getUnit
- Returns:
- the unit
-
toString
-