RowWiseKronecker: Row-Wise Kronecker

Description Usage Arguments Value Examples

View source: R/utils.R

Description

RowWiseKronecker() is a row-wise Kronecker utility function for feature engineering.

Usage

1

Arguments

x

the first data matrix

y

the second data matrix, should have the same number of rows as x

Value

transformed matrix

Examples

1
2
3
4
5
x <- cbind(rep(1, 3), 1 : 3)
y <- matrix(c(1, 0,
              0, 1,
              1, 1), 3, 2, byrow = TRUE)
 RowWiseKronecker(x, y)

XiaoqiLu/PhD-Thesis documentation built on March 1, 2021, 10:49 a.m.