Packages

c

scalation.random

TimeVariate

abstract class TimeVariate extends Variate

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

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

Instance Constructors

  1. new TimeVariate(stream: Int)

    stream

    the random number stream

Abstract Value Members

  1. abstract def gen: Double

    Determine the next random number for the particular distribution.

    Determine the next random number for the particular distribution.

    Definition Classes
    Variate
  2. abstract def gen1(z: Double): Double

    Determine the next random number for the particular distribution.

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

    z

    the limit parameter

    Definition Classes
    Variate
  3. abstract def meanF(tt: Double): Double

    Compute the mean as a function of time.

    Compute the mean as a function of time.

    tt

    the time point for computing the mean

  4. abstract def pf(z: Int, aa: Double, bb: Double): Double
  5. abstract def pf(z: Int, tt: Double): Double
  6. abstract def pf(z: Int): Double
  7. abstract def reset(): Unit

    Reset the time-based process to the beginning.

Concrete Value Members

  1. def count(a: Double, b: Double): Int
  2. def count(tt: Double): Int

    Compute the mean as a function of time.

    Compute the mean as a function of time.

    tt

    the time point for computing the mean

  3. def discrete: Boolean

    Determine whether the distribution is discrete or continuous.

    Determine whether the distribution is discrete or continuous.

    Definition Classes
    Variate
  4. 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
  5. def igen: Int

    Determine the next random integer for the particular distribution.

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

    Definition Classes
    Variate
  6. def igen1(z: Double): Int

    Determine the next random integer for the particular distribution.

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

    z

    the limit parameter

    Definition Classes
    Variate
  7. val mean: Double
    Definition Classes
    TimeVariateVariate
  8. 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.

    z

    the mass point whose probability is sought

    Definition Classes
    TimeVariateVariate
  9. def pmf(k: Int = 0): 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.

    k

    number of objects of the first type

    Definition Classes
    Variate
  10. def sgen: String

    Determine the next random string for the particular distribution.

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

    Definition Classes
    Variate
  11. def sgen1(z: Double): String

    Determine the next random string for the particular distribution.

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

    z

    the limit parameter

    Definition Classes
    Variate