Learn R Programming

TensorTools (version 1.0.0)

tmean: Determines the mean of a 3D tensor along mode 2

Description

Determines the mean of a 3D tensor along mode 2

Usage

tmean(tnsr)

Value

S3 tensor class object

Arguments

tnsr,

a 3D tensor of dimensions n1,n2,n3

Author

Kyle Caudle

Randy Hoover

Jackson Cates

Everett Sandbo

References

M. E. Kilmer, C. D. Martin, and L. Perrone, “A third-order generalization of the matrix svd as a product of third-order tensors,” Tufts University, Department of Computer Science, Tech. Rep. TR-2008-4, 2008

K. Braman, "Third-order tensors as linear operators on a space of matrices", Linear Algebra and its Applications, vol. 433, no. 7, pp. 1241-1253, 2010.

Examples

Run this code
tnsr <- t_rand(modes=c(3,4,5))
tmean(tnsr)

Run the code above in your browser using DataLab