Packages

c

scalation.random

RandomVecS

case class RandomVecS(dim: Int = 10, unique: Boolean = true, stream: Int = 0) extends VariateVec with Product with Serializable

The RandomVecS class generates a random vector of strings. Ex: ("3", "2", "0", "4", "1") has 'dim' = 5 and 'max' = 4.

dim

the dimension/size of the vector (number of elements)

unique

whether the strings must be unique

stream

the random number stream

Linear Supertypes
Serializable, Product, Equals, VariateVec, Error, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RandomVecS
  2. Serializable
  3. Product
  4. Equals
  5. VariateVec
  6. Error
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RandomVecS(dim: Int = 10, unique: Boolean = true, stream: Int = 0)

    dim

    the dimension/size of the vector (number of elements)

    unique

    whether the strings must be unique

    stream

    the random number stream

Value Members

  1. val dim: Int
  2. def discrete: Boolean

    Determine whether the distribution is discrete or continuous.

    Determine whether the distribution is discrete or continuous.

    Definition Classes
    VariateVec
  3. final def flaw(method: String, message: String): Unit
    Definition Classes
    Error
  4. def gen: VectoD

    Determine the next random double vector for the particular distribution.

    Determine the next random double vector for the particular distribution.

    Definition Classes
    RandomVecSVariateVec
  5. def igen: VectoI

    Determine the next random integer vector for the particular distribution.

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

    Definition Classes
    RandomVecSVariateVec
  6. def mean: VectoD

    Compute the vector mean for the particular distribution.

    Compute the vector mean for the particular distribution.

    Definition Classes
    RandomVecSVariateVec
  7. def pf(z: VectoD): Double

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

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

    z

    the mass point/vector whose probability is sought

    Definition Classes
    RandomVecSVariateVec
  8. def productElementNames: Iterator[String]
    Definition Classes
    Product
  9. def sgen: VectoS
  10. val stream: Int
  11. val unique: Boolean