TimeVariate

scalation.random.TimeVariate
abstract class TimeVariate(stream: Int) extends Variate

The TimeVariate abstract class serves as a superclass for time-based random variates such Poisson Processes.

Value parameters

stream

the random number stream

Attributes

Graph
Supertypes
class Variate
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def meanF(tt: Double): Double

Compute the mean as a function of time.

Compute the mean as a function of time.

Value parameters

tt

the time point for computing the mean

Attributes

def pf(z: Int): Double
def pf(z: Int, tt: Double): Double
def pf(z: Int, aa: Double, bb: Double): Double
def reset(): Unit

Reset the time-based process to the beginning.

Reset the time-based process to the beginning.

Attributes

Concrete methods

def count(tt: Double): Int

Count then number of sample until the time exceeds tt.

Count then number of sample until the time exceeds tt.

Value parameters

tt

the time point

Attributes

def count(a: Double, b: Double): Int
def pf(z: Double): Double

Compute the probability function (pf): The probability density function (pdf) for continuous RV's or the probability mass function (pmf) for discrete RV's.

Compute the probability function (pf): The probability density function (pdf) for continuous RV's or the probability mass function (pmf) for discrete RV's.

Value parameters

z

the mass point whose probability is sought

Attributes

Inherited methods

def discrete: Boolean

Determine whether the distribution is discrete or continuous.

Determine whether the distribution is discrete or continuous.

Attributes

Inherited from:
Variate
def igen: Int

Determine the next random integer for the particular distribution. It is only valid for discrete random variates.

Determine the next random integer for the particular distribution. It is only valid for discrete random variates.

Attributes

Inherited from:
Variate
def igen1(z: Double): Int

Determine the next random integer for the particular distribution. It is only valid for discrete random variates. This version allows one parameter.

Determine the next random integer for the particular distribution. It is only valid for discrete random variates. This version allows one parameter.

Value parameters

z

the limit parameter

Attributes

Inherited from:
Variate
def pmf(k: Int): Array[Double]

Return the entire probability mass function (pmf) for finite discrete RV's.

Return the entire probability mass function (pmf) for finite discrete RV's.

Value parameters

k

number of objects of the first type

Attributes

Inherited from:
Variate
def sgen: String

Determine the next random string for the particular distribution. For better random strings, overide this method.

Determine the next random string for the particular distribution. For better random strings, overide this method.

Attributes

Inherited from:
Variate
def sgen1(z: Double): String

Determine the next random string for the particular distribution. For better random strings, overide this method. This version allows one parameter.

Determine the next random string for the particular distribution. For better random strings, overide this method. This version allows one parameter.

Value parameters

z

the limit parameter

Attributes

Inherited from:
Variate

Inherited and Abstract methods

def gen: Double

Determine the next random number for the particular distribution.

Determine the next random number for the particular distribution.

Attributes

Inherited from:
Variate
def gen1(z: Double): Double

Determine the next random number for the particular distribution. This version allows one parameter.

Determine the next random number for the particular distribution. This version allows one parameter.

Value parameters

z

the limit parameter

Attributes

Inherited from:
Variate

Concrete fields

protected val MAXFAC: Int
val mean: Double

Precompute the mean for the particular distribution.

Precompute the mean for the particular distribution.

Attributes