basis: Basis maker.

Description Usage Arguments Value Author(s) Examples

View source: R/basis2.R

Description

A function for making matrices of sinusoidal basis function values.

Usage

1
basis(x, nb)

Arguments

x

The frequencies at which to evaluate the basis functions.

nb

The number of basis functions to include.

Value

A matrix whose rows correspond to input values and whose columns correspond to particular basis functions.

Author(s)

Ben Powell

Examples

1
bas.mat<-basis(seq(0,0.5,length=16),22)

regspec documentation built on May 2, 2019, 5:55 a.m.