Class DiscreteDistFloatScalar.Abs<T extends AbstractFloatScalarAbs<AU,​T,​RU,​?>,​AU extends AbsoluteLinearUnit<AU,​RU>,​RU extends Unit<RU>>

    • Constructor Detail

      • Abs

        public Abs​(DistDiscrete distribution,
                   AU unit)
        Construct a new DiscreteDistFloatScalar.Abs.
        Parameters:
        distribution - DistDiscrete; the wrapped distribution function.
        unit - AU; the absolute unit.
      • Abs

        public Abs​(int constant,
                   AU unit)
        Construct a new DiscreteDistFloatScalar.Abs that always draws the same, fixed, value.
        Parameters:
        constant - int; the constant value.
        unit - AU; the absolute unit.
    • Method Detail

      • draw

        public final T draw()
        Draw a value from this DiscreteDistFloatScalar.Abs.
        Returns:
        T; a value drawn from the distribution in the given unit.