powered by
Forms a tensor of sample (mixed) central moments
Ptensor(x, k)
tensor
matrix; traits in columns samples in rows
kth central moment
Jarrod Hadfield j.hadfield@ed.ac.uk
n<-1000 y<-matrix(rnorm(n), n/2, 2) Ptensor(y,2) cov(y)*((n-1)/n)
Run the code above in your browser using DataLab