The RTensorD
companion object provides factory methods for the RTensorD
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
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 three dimensions (n1, n2, n3)
- x
-
the values for the tensor
Attributes
Count the joint frequency of occurrence of value pairs (x_ij, y_i) for each column j in the data matrix. Value counts for each column determine dim2, while the value count for y gives dim3.
Count the joint frequency of occurrence of value pairs (x_ij, y_i) for each column j in the data matrix. Value counts for each column determine dim2, while the value count for y gives dim3.
Value parameters
- dim2
-
the varying second dimension of the resulting tensor (# values for each xj)
- dim3
-
the third dimension of the resulting tensor (# values for y)
- x
-
the input/data integer-valued matrix
- y
-
the output/response integer-valued vector
Attributes
Count the joint frequency of occurrence of value triples (x_i, z_i, y_i). The value counts for x and z give dim2, while the value count for y gives dim3.
Count the joint frequency of occurrence of value triples (x_i, z_i, y_i). The value counts for x and z give dim2, while the value count for y gives dim3.
Value parameters
- dim2
-
the varying second dimension of the resulting tensor (# values for x and z)
- dim3
-
the third dimension of the resulting tensor (# values for y)
- x
-
the first input/data integer-valued vector
- y
-
the output/response integer-valued vector
- z
-
the second input/data integer-valued vector