computeMoments {morpheus} | R Documentation |
Compute cross-moments of order 1,2,3 from X,Y
computeMoments(X, Y)
X |
Matrix of input data (size nxd) |
Y |
Vector of binary outputs (size n) |
A list L where L[[i]] is the i-th cross-moment
X <- matrix(rnorm(100), ncol=2)
Y <- rbinom(100, 1, .5)
M <- computeMoments(X, Y)