(Mixed) Central Moments of a Multivariate Normal Distribution
knorm.RdForms a tensor of (mixed) central moments of a multivariate normal distribution
Author
Jarrod Hadfield j.hadfield@ed.ac.uk
Examples
V<-diag(2)
knorm(V,2)
#> I2
#> I1 [,1] [,2]
#> [1,] 1 0
#> [2,] 0 1
#> attr(,"class")
#> [1] "tensor" "matrix"
knorm(V,4)
#> , , 1, 1
#>
#> I2
#> I1 [,1] [,2]
#> [1,] 3 0
#> [2,] 0 1
#>
#> , , 2, 1
#>
#> I2
#> I1 [,1] [,2]
#> [1,] 0 1
#> [2,] 1 0
#>
#> , , 1, 2
#>
#> I2
#> I1 [,1] [,2]
#> [1,] 0 1
#> [2,] 1 0
#>
#> , , 2, 2
#>
#> I2
#> I1 [,1] [,2]
#> [1,] 1 0
#> [2,] 0 3
#>
#> attr(,"class")
#> [1] "tensor"