spire.random.mutable

Well512

class Well512 extends IntBasedGenerator

Implements the WELL PRNG (Well Equidistributed Long-period Linear), developed by F. Panneton, P. L'Ecuyer, and M. Matsumoto.

This class uses WELL512a, which contains 512 bits of state.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Well512
  2. IntBasedGenerator
  3. Generator
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Well512(_i: Int, state: Array[Int])

    Attributes
    protected[spire.random]

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def chooseFromArray[A](arr: Array[A])(implicit gen: Generator): A

    Definition Classes
    Generator
  8. def chooseFromIterable[A](as: Iterable[A])(implicit gen: Generator): A

    Definition Classes
    Generator
  9. def chooseFromSeq[A](seq: Seq[A])(implicit gen: Generator): A

    Definition Classes
    Generator
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def copy: Generator

    Definition Classes
    Generator
  12. def copyInit: Well512

    Generates a copy of this PRNG (with independent state).

    Generates a copy of this PRNG (with independent state).

    Definition Classes
    Well512Generator
  13. def copyState: Array[Int]

    Generate a copy of the RNG's internal state.

  14. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  16. var extra: Boolean

    Attributes
    protected
    Definition Classes
    Generator
  17. def fillArray[A](arr: Array[A])(implicit arg0: Dist[A]): Unit

    Fill an Array[A] using the given Dist[A] instance.

    Fill an Array[A] using the given Dist[A] instance.

    Definition Classes
    Generator
  18. def fillBytes(arr: Array[Byte]): Unit

    Fill an array with random Bytes.

    Fill an array with random Bytes.

    Definition Classes
    Generator
  19. def fillGaussians(arr: Array[Double], mean: Double, stddev: Double): Unit

    Definition Classes
    Generator
  20. def fillGaussians(arr: Array[Double]): Unit

    Definition Classes
    Generator
  21. def fillInts(arr: Array[Int]): Unit

    Fill an array with random Ints.

    Fill an array with random Ints.

    Definition Classes
    Generator
  22. def fillLongs(arr: Array[Long]): Unit

    Fill an array with random Longs.

    Fill an array with random Longs.

    Definition Classes
    Generator
  23. def fillShorts(arr: Array[Short]): Unit

    Fill an array with random Shorts.

    Fill an array with random Shorts.

    Definition Classes
    Generator
  24. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. def generateArray[A](n: Int)(implicit arg0: Dist[A], arg1: ClassTag[A]): Array[A]

    Generate an Array[A] using the given Dist[A] instance.

    Generate an Array[A] using the given Dist[A] instance.

    Definition Classes
    Generator
  26. def generateBytes(n: Int): Array[Byte]

    Generate an array of n random Bytes.

    Generate an array of n random Bytes.

    Definition Classes
    Generator
  27. def generateGaussians(n: Int, mean: Double, stddev: Double): Array[Double]

    Definition Classes
    Generator
  28. def generateGaussians(n: Int): Array[Double]

    Definition Classes
    Generator
  29. def generateInts(n: Int): Array[Int]

    Generate an array of n random Ints.

    Generate an array of n random Ints.

    Definition Classes
    Generator
  30. def generateLongs(n: Int): Array[Long]

    Generate an array of n random Longs.

    Generate an array of n random Longs.

    Definition Classes
    Generator
  31. def generateShorts(n: Int): Array[Short]

    Generate an array of n random Shorts.

    Generate an array of n random Shorts.

    Definition Classes
    Generator
  32. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  33. def getSeed(): Array[Int]

  34. def getSeedBytes(): Array[Byte]

    Definition Classes
    Well512Generator
  35. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  36. var i: Int

  37. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  38. def iterator[A](implicit next: Dist[A]): Iterator[A]

    Generate an infinite iterator of random values using Dist[A].

    Generate an infinite iterator of random values using Dist[A].

    Definition Classes
    Generator
  39. final def m1: Int

    Annotations
    @inline()
  40. final def m2: Int

    Annotations
    @inline()
  41. final def mat0neg(t: Int, v: Int): Int

    Annotations
    @inline()
  42. final def mat0pos(t: Int, v: Int): Int

    Annotations
    @inline()
  43. final def mat3neg(t: Int, v: Int): Int

    Annotations
    @inline()
  44. final def mat4neg(t: Int, b: Int, v: Int): Int

    Annotations
    @inline()
  45. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  46. def next[A](implicit next: Dist[A]): A

    Generate a random value using a Dist[A] type class instance.

    Generate a random value using a Dist[A] type class instance.

    Implicit Dist[A] instances are provided for the AnyVal types as well as UByte through ULong. More complex Dist instances can be created from these.

    Definition Classes
    Generator
  47. def nextBits(n: Int): Int

    Generates a random integer using n bits of state (0 <= n <= 32).

    Generates a random integer using n bits of state (0 <= n <= 32).

    Definition Classes
    Generator
  48. def nextBoolean(): Boolean

    Generates a random Boolean.

    Generates a random Boolean.

    Definition Classes
    Generator
  49. def nextDouble(from: Double, until: Double): Double

    Generates a random double in [from, until).

    Generates a random double in [from, until).

    Definition Classes
    Generator
  50. def nextDouble(n: Double): Double

    Generates a random double in [0.

    Generates a random double in [0.0, n).

    Definition Classes
    Generator
  51. def nextDouble(): Double

    Generates a random double in [0.

    Generates a random double in [0.0, 1.0).

    Definition Classes
    Generator
  52. def nextFloat(from: Float, until: Float): Float

    Generates a random float in [from, until).

    Generates a random float in [from, until).

    Definition Classes
    Generator
  53. def nextFloat(n: Float): Float

    Generates a random float in [0.

    Generates a random float in [0.0, n).

    Definition Classes
    Generator
  54. def nextFloat(): Float

    Generates a random float in [0.

    Generates a random float in [0.0, 1.0).

    Definition Classes
    Generator
  55. def nextGaussian(mean: Double, stddev: Double): Double

    Definition Classes
    Generator
  56. def nextGaussian(): Double

    Definition Classes
    Generator
  57. def nextInt(): Int

    Generates a random int.

    Generates a random int. All 32-bit int values are equally likely.

    Definition Classes
    Well512Generator
  58. def nextInt(from: Int, to: Int): Int

    Return an Int in [from, to].

    Return an Int in [from, to].

    Definition Classes
    Generator
  59. def nextInt(n: Int): Int

    Generates a random int between 0 (inclusive) and n (exclusive).

    Generates a random int between 0 (inclusive) and n (exclusive).

    Definition Classes
    Generator
  60. def nextLong(): Long

    Generates a random long.

    Generates a random long. All 64-bit long values are equally likely.

    Definition Classes
    IntBasedGeneratorGenerator
  61. def nextLong(from: Long, to: Long): Long

    Return an Long in [from, to].

    Return an Long in [from, to].

    Definition Classes
    Generator
  62. def nextLong(n: Long): Long

    Generates a random int between 0 (inclusive) and n (exclusive).

    Generates a random int between 0 (inclusive) and n (exclusive).

    Definition Classes
    Generator
  63. final def notify(): Unit

    Definition Classes
    AnyRef
  64. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  65. def oneOf[A](as: A*): A

    Definition Classes
    Generator
  66. def sampleFromArray[A](as: Array[A], size: Int)(implicit arg0: ClassTag[A], gen: Generator): Array[A]

    Definition Classes
    Generator
  67. def sampleFromTraversable[A](as: Traversable[A], size: Int)(implicit arg0: ClassTag[A], gen: Generator): Array[A]

    Definition Classes
    Generator
  68. def setSeed(ints: Array[Int]): Unit

  69. def setSeedBytes(bytes: Array[Byte]): Unit

    Definition Classes
    Well512Generator
  70. def shuffle[A](as: Array[A])(implicit gen: Generator): Unit

    Definition Classes
    Generator
  71. def sync: SyncGenerator

    Definition Classes
    Generator
  72. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  73. def toImmutable: immutable.Generator

    Definition Classes
    Generator
  74. def toString(): String

    Definition Classes
    AnyRef → Any
  75. final def v0(i: Int): Int

    Annotations
    @inline()
  76. var value: Double

    Attributes
    protected
    Definition Classes
    Generator
  77. final def vm1(i: Int): Int

    Annotations
    @inline()
  78. final def vm2(i: Int): Int

    Annotations
    @inline()
  79. final def vrm1(i: Int): Int

    Annotations
    @inline()
  80. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  81. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  82. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from IntBasedGenerator

Inherited from Generator

Inherited from AnyRef

Inherited from Any

Ungrouped