RandomVecD

scalation.random.RandomVecD
case class RandomVecD(dim: Int, max: Double, min: Double, density: Double, runLength: Int, stream: Int) extends VariateVec

The RandomVecD class generates a random vector of doubles. Ex: (3.0, 2.0, 0.0, 4.0, 1.0) has dim = 5 and max = 4.

Value parameters

density

sparsity basis = 1 - density

dim

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

max

generate doubles in the range min to max

min

generate doubles in the range min to max

runLength

the maximum run length

stream

the random number stream

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class VariateVec
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def gen: VectorD

Determine the next random double vector for the particular distribution.

Determine the next random double vector for the particular distribution.

Attributes

def igen: VectorI

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

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

Attributes

def mean: VectorD

Compute the vector mean for the particular distribution.

Compute the vector mean for the particular distribution.

Attributes

def pf(z: VectorD): 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.

Value parameters

z

the mass point/vector 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:
VariateVec
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product