design_matrix: Generic function for creating a design matrix H

Description Usage Arguments See Also Examples

View source: R/design_matrix.R

Description

This is a generic function which calles the appropriate methods depending on the class of the object x.

Usage

1

Arguments

x

A basis function object.

...

Additional parameters.

See Also

polynomial_basis, rbf_basis, design_matrix.polynomial, design_matrix.rbf

Examples

1
2
3
4
5
6
7
8
9
obj <- polynomial.object(M=2)
obs <- c(0,.2,.5)
polyn <- design_matrix(obj, obs)

#----------------

obj <- rbf.object(M=2)
obs <- c(0,.2,.5)
rbf <- design_matrix(obj, obs)

andreaskapou/mpgex documentation built on Nov. 25, 2017, 8:08 a.m.