Description Usage Arguments Value Examples
Basis Expansion
1 | expand(x, basis)
|
x |
A context observation (scalar if using the legendre polynomial basis). |
basis |
A list of basis functions to be applied to the context observation. |
A vector where the j'th element is the j'th basis function applied to the context observation.
1 2 3 4 | J <- 5
basis <- legendre_basis(J) # Orthogonal on [-1,1]
x <- runif(1,-1,1)
basis_expansion <- expand(x,basis)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.