GaussianRNG

com.phasmidsoftware.lascala.GaussianRNG
See theGaussianRNG companion object
case class GaussianRNG(n: Long) extends RNG_Java[(Double, Double)]

This class is a random-number-generator for values which are normally distributed with mean: 0 and standard deviation: 1

See Generating values from normal distribution (Box-Muller method)

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class RNG_Java[(Double, Double)]
trait RNG[(Double, Double)]
trait () => (Double, Double)
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def buildNew(n: Long): GaussianRNG

Method to build a new instance of this RNG

Method to build a new instance of this RNG

Value parameters

n

the state

Attributes

Returns

a new instance of RNG as a RNG_Java

override def nextSeed: Long

Method to yield the next seed value. This implementation simply calls the nextSeed method in the companion object.

Method to yield the next seed value. This implementation simply calls the nextSeed method in the companion object.

may be overridden (if you want to define your own pseudo-random sequence)

Attributes

Returns

a Long value

Definition Classes
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
RNG_Java -> Function0 -> Any

Inherited methods

def apply(): (Double, Double)

The apply method: takes no parameter and yields an A

The apply method: takes no parameter and yields an A

Attributes

Returns

A

Inherited from:
RNG_Java
def map[B](f: (Double, Double) => B): RNG[B]

Method to map this RNG into another RNG

Method to map this RNG into another RNG

Type parameters

B

the underlying type of the new RNG

Value parameters

f

the map function which should be applied to the underlying value.

Attributes

Returns

a new RNG[B]

Inherited from:
RNG_Java
def next: RNG_Java[(Double, Double)]

Method to yield the next RNG in the pseudo-random sequence. Extenders don't normally need to override this.

Method to yield the next RNG in the pseudo-random sequence. Extenders don't normally need to override this.

Attributes

Inherited from:
RNG_Java
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product