RTensor4D

scalation.mathstat.RTensor4D
See theRTensor4D companion class
object RTensor4D

The RTensor4D companion object provides factory methods for the RTensor4D class.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
RTensor4D.type

Members list

Value members

Concrete methods

def apply(n1: Int, n2: Int, n3: Int, n4: Int): RTensor4D

Build an empty rectangular tensor.

Build an empty rectangular tensor.

Value parameters

n1

the first dimension

n2

the second dimension

n3

the third dimension

n4

the fourth dimension

Attributes

def apply(n: (Int, Int, Int, Int), x: Double*): RTensor4D

Build a rectangular tensor from the var-argument list x.

Build a rectangular tensor from the var-argument list x.

Value parameters

n

the four dimensions (n1, n2, n3, n4)

x

the values for the tensor

Attributes

def freq(x: MatrixD, dim2: VectorI, pa: VectorI, dim3: VectorI, y: VectorI, dim4: Int): RTensor4D

Count the joint frequency of occurrence of value triple (x_ij, x_ip, y_i) for each column j in the data matrix. Value counts for each column determine dim2, value count for parent p gives dim2, while the value count for y gives dim4.

Count the joint frequency of occurrence of value triple (x_ij, x_ip, y_i) for each column j in the data matrix. Value counts for each column determine dim2, value count for parent p gives dim2, while the value count for y gives dim4.

Value parameters

dim2

the varying second dimension of the resulting tensor (# values for each xj)

dim3

the varying third dimension of the resulting tensor (# values for each xp)

dim4

the third dimension of the resulting tensor (# values for y)

pa

the parent vector giving xp for each xj

x

the input/data integer-valued matrix

y

the output/response integer-valued vector

Attributes