Class/Object

spire.random.rng

Well19937a

Related Docs: object Well19937a | package rng

Permalink

final class Well19937a extends IntBasedGenerator

This is a Scala implementation of the Well19937a PRNG based on WELL19937a.c.

The acronym WELL stands for Well Equidistributed Long-period Linear.

Reference: François Panneton, Pierre L'Ecuyer and Makoto Matsumoto: "Improved Long-Period Generators Based on Linear Recurrences Modulo 2", ACM Transactions on Mathematical Software, Vol. 32, No. 1, January 2006, pp 1--16.

See also

WELL @ Wikipedia

Well PRNG Home Page

WELL19937a.c

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Well19937a
  2. IntBasedGenerator
  3. Generator
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Well19937a(state: Array[Int], i0: Int)

    Permalink
    Attributes
    protected[spire.random]

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

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

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

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

    Permalink
    Definition Classes
    Generator
  8. def clone(): AnyRef

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

    Permalink
    Definition Classes
    Generator
  10. def copyInit: Well19937a

    Permalink
    Definition Classes
    Well19937aGenerator
  11. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. var extra: Boolean

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

    Permalink

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

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

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

    Permalink

    Fill an array with random Bytes.

    Fill an array with random Bytes.

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

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

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

    Permalink

    Fill an array with random Ints.

    Fill an array with random Ints.

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

    Permalink

    Fill an array with random Longs.

    Fill an array with random Longs.

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

    Permalink

    Fill an array with random Shorts.

    Fill an array with random Shorts.

    Definition Classes
    Generator
  21. def finalize(): Unit

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

    Permalink

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

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

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

    Permalink

    Generate an array of n random Bytes.

    Generate an array of n random Bytes.

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

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

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

    Permalink

    Generate an array of n random Ints.

    Generate an array of n random Ints.

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

    Permalink

    Generate an array of n random Longs.

    Generate an array of n random Longs.

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

    Permalink

    Generate an array of n random Shorts.

    Generate an array of n random Shorts.

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

    Permalink
    Definition Classes
    AnyRef → Any
  30. def getSeedBytes(): Array[Byte]

    Permalink
    Definition Classes
    Well19937aGenerator
  31. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  32. final def isInstanceOf[T0]: Boolean

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

    Permalink

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

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

    Definition Classes
    Generator
  34. final def ne(arg0: AnyRef): Boolean

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

    Permalink

    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
  36. def nextBits(n: Int): Int

    Permalink

    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
  37. def nextBoolean(): Boolean

    Permalink

    Generates a random Boolean.

    Generates a random Boolean.

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

    Permalink

    Generates a random double in [from, until).

    Generates a random double in [from, until).

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

    Permalink

    Generates a random double in [0.0, n).

    Generates a random double in [0.0, n).

    Definition Classes
    Generator
  40. def nextDouble(): Double

    Permalink

    Generates a random double in [0.0, 1.0).

    Generates a random double in [0.0, 1.0).

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

    Permalink

    Generates a random float in [from, until).

    Generates a random float in [from, until).

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

    Permalink

    Generates a random float in [0.0, n).

    Generates a random float in [0.0, n).

    Definition Classes
    Generator
  43. def nextFloat(): Float

    Permalink

    Generates a random float in [0.0, 1.0).

    Generates a random float in [0.0, 1.0).

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

    Permalink
    Definition Classes
    Generator
  45. def nextGaussian(): Double

    Permalink
    Definition Classes
    Generator
  46. def nextInt(): Int

    Permalink

    Generate an equally-distributed random Int.

    Generate an equally-distributed random Int.

    Definition Classes
    Well19937aGenerator
  47. def nextInt(from: Int, to: Int): Int

    Permalink

    Return an Int in [from, to].

    Return an Int in [from, to].

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

    Permalink

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

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

    Definition Classes
    Generator
  49. def nextLong(): Long

    Permalink

    Generates a random long.

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

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

    Permalink

    Return an Long in [from, to].

    Return an Long in [from, to].

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

    Permalink

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

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

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

    Permalink
    Definition Classes
    AnyRef
  53. final def notifyAll(): Unit

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

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

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

    Permalink
    Definition Classes
    Generator
  57. def setSeedBytes(bytes: Array[Byte]): Unit

    Permalink
    Definition Classes
    Well19937aGenerator
  58. def shuffle[A](as: Array[A])(implicit gen: Generator): Unit

    Permalink
    Definition Classes
    Generator
  59. def sync: SyncGenerator

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

    Permalink
    Definition Classes
    AnyRef
  61. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  62. var value: Double

    Permalink
    Attributes
    protected
    Definition Classes
    Generator
  63. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from IntBasedGenerator

Inherited from Generator

Inherited from AnyRef

Inherited from Any

Ungrouped