Learn R Programming

BayesBD (version 1.2)

eigenfun: Generate the Fourier series

Description

eigenfun(n, x) generates the first n fourier series, which are \(\{1/\sqrt{2*\pi}, 1/\sqrt{\pi}*cos(x), 1/\sqrt{\pi}*cos(x), ...\}\) evaluated at x.

Usage

eigenfun(n,x)

Arguments

n

The number of eigenfunctions used to approximate the boundary. It should be a odd number.

x

The argument at which the eigenfunctions are evaluated.