basis_vec | R Documentation |
Function to generate unit basis vector according to polynomial order
and derivative order. This function returns unit vector that is the same size
as the vector returned by poly_base(x, p)
.
basis_vec(x, p, mu)
x |
Sample input scalar or vector. |
p |
Polynomial order. |
mu |
Derivative order. |
Vector of appropriate length with ones corresponding to entries of order mu
.
basis_vec(x = 2, p = 5, mu = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.