computeMoments: computeMoments

View source: R/utils.R

computeMomentsR Documentation

computeMoments

Description

Compute cross-moments of order 1,2,3 from X,Y

Usage

computeMoments(X, Y)

Arguments

X

Matrix of input data (size nxd)

Y

Vector of binary outputs (size n)

Value

A list L where L[[i]] is the i-th cross-moment

Examples

X <- matrix(rnorm(100), ncol=2)
Y <- rbinom(100, 1, .5)
M <- computeMoments(X, Y)


morpheus documentation built on Feb. 16, 2023, 10:01 p.m.