Description Usage Arguments Value See Also Examples
Applies the polynomial basis function of degree M to the input X.
1 | polynomial_basis(X, M = 1)
|
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. |
Input X, after being transformed from the polynomial basis function.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.