Packages

abstract class RNG extends Error

The RNG abstract class is the base class for all ScalaTion Random Number Generators. The subclasses 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.

Linear Supertypes
Error, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RNG
  2. Error
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RNG(stream: Int)

    stream

    the random number stream index

Abstract Value Members

  1. abstract def gen: Double

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

  2. abstract def igen: Int

    Return the next stream value as an integer Int.

Concrete Value Members

  1. final def flaw(method: String, message: String): Unit

    Show the flaw by printing the error message.

    Show the flaw by printing the error message.

    method

    the method where the error occurred

    message

    the error message

    Definition Classes
    Error
  2. val mean: Double

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

  3. 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).

    z

    the mass point whose probability density is sought