RNG

scalation.random.RNG
trait RNG(stream: Int)

The RNG trait is the base class for all ScalaTion Random Number Generators. The extending classes must implement a 'gen' method that generates random real numbers in the range (0, 1). They must also implement an 'igen' methods to return stream values.

Value parameters

stream

the random number stream index (0 to N_STREAMS - 1 = 999)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Random
class Random0
class Random2
class Random3

Members list

Value members

Abstract methods

def gen: Double

Return the next random number as a real Double in the interval (0, 1).

Return the next random number as a real Double in the interval (0, 1).

Attributes

def igen: Int

Return the next stream value as an integer Int.

Return the next stream value as an integer Int.

Attributes

Concrete methods

def pf(z: Double): Double

Compute the probability function (pf), i.e., the probability density function (pdf).

Compute the probability function (pf), i.e., the probability density function (pdf).

Value parameters

z

the mass point whose probability density is sought

Attributes

Concrete fields

val mean: Double

Return the theoretical mean for the random number generator's 'gen' method.

Return the theoretical mean for the random number generator's 'gen' method.

Attributes