powered by
Compute cross-moments of order 1,2,3 from X,Y
computeMoments(X, Y)
A list L where L[[i]] is the i-th cross-moment
Matrix of input data (size nxd)
Vector of binary outputs (size n)
X <- matrix(rnorm(100), ncol=2) Y <- rbinom(100, 1, .5) M <- computeMoments(X, Y)
Run the code above in your browser using DataLab