Class DistContinuous

    • Constructor Detail

      • DistContinuous

        public DistContinuous​(StreamInterface stream)
        constructs a new continuous distribution.
        Parameters:
        stream - StreamInterface; the stream
    • Method Detail

      • draw

        public abstract double draw()
        draws the next stream value according to the probability of this this distribution.
        Returns:
        the next double value drawn.
      • getProbabilityDensity

        public abstract double getProbabilityDensity​(double x)
        returns the probability density value of a value x.
        Parameters:
        x - double; the value for which the density function needs to be calculated
        Returns:
        double; the probability density for value x