polynomial_basis: Apply polynomial basis function.

Description Usage Arguments Value See Also Examples

Description

Applies the polynomial basis function of degree M to the input X.

Usage

1
polynomial_basis(X, M = 1)

Arguments

X

The input data, either a scalar, vector or matrix.

M

Integer, denoting the degree of the polynomial basis that will be applied to the input X. M should not be negative.

Value

Input X, after being transformed from the polynomial basis function.

See Also

rbf_basis

Examples

1
2
3
out <- polynomial_basis(X=3, M=2)
# Or using a vector X
out <- polynomial_basis(X=c(2,3,4), M=2)

andreaskapou/mpgex documentation built on May 12, 2019, 3:33 a.m.