Description Usage Arguments Value Author(s) See Also Examples
These functions call the appropriate methods depending on the
class of the object x
to create RBF, polynomial or Fourier design
matrices.
1 2 3 4 5 6 7 8 9 10 11 12 13 | design_matrix(x, ...)
## Default S3 method:
design_matrix(x, ...)
## S3 method for class 'polynomial'
design_matrix(x, obs, ...)
## S3 method for class 'rbf'
design_matrix(x, obs, ...)
## S3 method for class 'fourier'
design_matrix(x, obs, ...)
|
x |
A basis function object. |
... |
Additional parameters. |
obs |
A vector of observations. |
A design matrix object
C.A.Kapourani C.A.Kapourani@ed.ac.uk
create_polynomial_object
,
create_rbf_object
, create_fourier_object
1 2 3 4 5 6 7 8 9 | obj <- create_polynomial_object(M=2)
obs <- c(0,.2,.5)
polyn <- design_matrix(obj, obs)
#----------------
obj <- create_rbf_object(M=2)
obs <- c(0,.2,.5)
rbf <- design_matrix(obj, obs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.