Class DiscreteDistDoubleScalar.Rel<T extends AbstractDoubleScalarRel<U,T>,U extends Unit<U>>
java.lang.Object
org.opentrafficsim.core.units.distributions.AbstractDiscreteDistScalar
org.opentrafficsim.core.units.distributions.DiscreteDistDoubleScalar.Rel<T,U>
- Type Parameters:
T- The absolute doublescalar typeU- The unit type used
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DiscreteDistAcceleration,DiscreteDistAngle,DiscreteDistArea,DiscreteDistDensity,DiscreteDistDimensionless,DiscreteDistDuration,DiscreteDistElectricalCharge,DiscreteDistElectricalCurrent,DiscreteDistElectricalPotential,DiscreteDistElectricalResistance,DiscreteDistEnergy,DiscreteDistFlowMass,DiscreteDistForce,DiscreteDistFrequency,DiscreteDistLength,DiscreteDistLinearDensity,DiscreteDistMass,DiscreteDistPower,DiscreteDistPressure,DiscreteDistSolidAngle,DiscreteDistSpeed,DiscreteDistTemperature,DiscreteDistTorque,DiscreteDistVolume
- Enclosing interface:
- DiscreteDistDoubleScalar
public static class DiscreteDistDoubleScalar.Rel<T extends AbstractDoubleScalarRel<U,T>,U extends Unit<U>> extends AbstractDiscreteDistScalar implements Serializable
Relative value.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description Rel(long constant, U unit)Rel(DistDiscrete distribution, U unit) -
Method Summary
Methods inherited from class org.opentrafficsim.core.units.distributions.AbstractDiscreteDistScalar
getDistribution, getUnit
-
Constructor Details
-
Method Details
-
draw
- Returns:
- a drawn number from the distribution in the given unit.
-
toString
- Overrides:
toStringin classAbstractDiscreteDistScalar
-