Class SamplerBase

    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected double nextDouble()
      Deprecated.
      Return the next double value.
      protected int nextInt()
      Deprecated.
      Return the next int value.
      protected int nextInt​(int max)
      Deprecated.
      Return the next int value.
      protected long nextLong()
      Deprecated.
      Return the next long value.
      java.lang.String toString()
      Deprecated.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SamplerBase

        protected SamplerBase​(UniformRandomProvider rng)
        Deprecated.
        Create an instance.
        Parameters:
        rng - Generator of uniformly distributed random numbers.
    • Method Detail

      • nextDouble

        protected double nextDouble()
        Deprecated.
        Return the next double value.
        Returns:
        a random value from a uniform distribution in the interval [0, 1).
      • nextInt

        protected int nextInt()
        Deprecated.
        Return the next int value.
        Returns:
        a random int value.
      • nextInt

        protected int nextInt​(int max)
        Deprecated.
        Return the next int value.
        Parameters:
        max - Upper bound (excluded).
        Returns:
        a random int value in the interval [0, max).
      • nextLong

        protected long nextLong()
        Deprecated.
        Return the next long value.
        Returns:
        a random long value.
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object