NormalMat

scalation.random.NormalMat
case class NormalMat(dim: Int, dim2: Int, mu: Double, sig2: Double, stream: Int) extends VariateMat

The NormalMat class generates Normal (Gaussian) random variate matrices according to the Normal distribution with scalar mean 'mu' and variance 'sig2'. This continuous RVM models multiple instances of normally distributed multidimensional data and treats the variables as identical and independent.

Value parameters

dim

the number of rows in the matrix

dim2

the number of columns in the matrix

mu

the mean

sig2

the variance (stdev^2)

stream

the random number stream

Attributes

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

Members list

Value members

Concrete methods

def gen: MatrixD

Determine the next random double matrix for the particular distribution.

Determine the next random double matrix for the particular distribution.

Attributes

def igen: MatrixD

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

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

Attributes

def mean: MatrixD

Compute the matrix mean for the particular distribution.

Compute the matrix mean for the particular distribution.

Attributes

def pf(z: MatrixD): Double

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

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

Value parameters

z

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

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product