NormalVec_c

scalation.random.NormalVec_c
case class NormalVec_c(n: Int, mu: Double, sig2: Double, stream: Int) extends VariateVec

The NormalVec_c class generates Normal (Gaussian) random variate vectors according to the Multivariate Normal distribution with constant mean 'mu' and variance 'sig2'. This continuous RVV models normally distributed multidimensional data and treats the variables as independent.

Value parameters

mu

the common mean

n

the number of elements in the vector

sig2

the common variance (standard deviation squared)

stream

the random number stream

Attributes

See also
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