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.
- Alphabetic
- By Inheritance
- RNG
- Error
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
RNG(stream: Int)
- stream
the random number stream index
Abstract Value Members
Concrete Value Members
-
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
-
val
mean: Double
Return the theoretical mean for the random number generator's 'gen' method.
-
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