RandomTenD

scalation.random.RandomTenD
case class RandomTenD(dim: Int, dim2: Int, dim3: Int, max: Double, min: Double, density: Double, stream: Int) extends VariateTen

The RandomTenD class generates a random tensor of doubles.

Value parameters

density

sparsity basis = 1 - density

dim

the number of rows in the tensor

dim2

the number of columns in the tensor

dim3

the number of sheets in the tensor

max

generate integers in the range 0 (inclusive) to max (inclusive)

min

generate integers in the range 0 (inclusive) to max (inclusive)

stream

the random number stream

Attributes

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

Members list

Value members

Concrete methods

def gen: TensorD

Determine the next random double tensor for the particular distribution.

Determine the next random double tensor for the particular distribution.

Attributes

def igen: TensorD

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

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

Attributes

def mean: TensorD

Compute the tensor mean for the particular distribution.

Compute the tensor mean for the particular distribution.

Attributes

def pf(z: TensorD): Double

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

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

Value parameters

z

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

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product