The RTensor4D
companion object provides factory methods for the RTensor4D
class.
Attributes
Members list
Value members
Concrete methods
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
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
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