Learn R Programming

CepReg (version 0.1.3)

psi_get: Generate a Fourier Cosine Basis Matrix for Log-Spectral Modeling

Description

Constructs a matrix of Fourier cosine basis functions evaluated at a given frequency grid. Used in cepstral smoothing of log-spectra.

Usage

psi_get(k0, frq)

Value

A k0 x length(frq) matrix of basis function.

Arguments

k0

Number of cepstral basis function.

frq

A vector of frequencies in [0,1].

Examples

Run this code
set.seed(123)
frq<-seq(0,1, length.out=5)
psi<-psi_get(k0=3, frq)

Run the code above in your browser using DataLab