mapFeat: Feature mapping function to polynomial feautures

Description Usage Arguments Author(s) Examples

View source: R/FeautureMap.R

Description

mapFeat maps the input variable X into quadratic feautures. for instance, if the input is a two dimensional array the function returns a new array with more features, comprising of X1, X2, X1.^2, X2.^2, X1*X2, X1*X2.^2

Usage

1
mapFeat(X, order = 2)

Arguments

X

an array to be mapped. Must be numeric!

order

the final polynomial order to map (defaults to 2), may take a long time if order is large. at this time also only accepts a value of two.

Author(s)

Marco D. Visser

Examples

1
mapFeat(array(rnorm(20),dim=c(10,2)))

MarcoDVisser/rML documentation built on May 7, 2019, 2:49 p.m.