Class DiscreteDistDoubleScalar.Rel<T extends AbstractDoubleScalarRel<U,​T>,​U extends Unit<U>>

    • Constructor Detail

      • Rel

        public Rel​(DistDiscrete distribution,
                   U unit)
        Construct a new DistDiscreteDoubleScalar.Rel.
        Parameters:
        distribution - DistDiscrete; the wrapped distribution function
        unit - U; the realtive unit
      • Rel

        public Rel​(long constant,
                   U unit)
        Construct a new DistDiscreteDoubleScalar.Rel that always draws the same, fixed, value.
        Parameters:
        constant - long; the constant value.
        unit - U; the relative unit.
    • Method Detail

      • draw

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