Class DiscreteDistDoubleScalar.Abs<T extends AbstractDoubleScalarAbs<AU,​T,​RU,​?>,​AU extends AbsoluteLinearUnit<AU,​RU>,​RU extends Unit<RU>>

    • Constructor Detail

      • Abs

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

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

      • draw

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