Class DistDiscrete

    • Constructor Detail

      • DistDiscrete

        public DistDiscrete​(StreamInterface stream)
        constructs a new discrete distribution.
        Parameters:
        stream - StreamInterface; the random number stream
    • Method Detail

      • draw

        public abstract long draw()
        draws the next long from the stream.
        Returns:
        long
      • probability

        public abstract double probability​(long observation)
        returns the probability of the observation in this particular distribution.
        Parameters:
        observation - long; the discrete observation.
        Returns:
        double the probability.