cosine_basis: Evaluates cosine basis for new observations

Description Usage Arguments Value

View source: R/auxiliaryFunctions.R

Description

Evaluates cosine basis for new observations

Usage

1
cosine_basis(z, n_basis)

Arguments

z

elements where basis is going to be calculated. Assumes z has been scaled to [0, 1]

n_basis

how many basis functions should be calculated

Value

A matrix of dimension length(z) by n_basis with entries consisting of the first n_basis cosine basis functions evaluated at the points z


rizbicki/FlexCoDE documentation built on Feb. 10, 2022, 3:14 p.m.