basis_functions: Creation of basis functions

Description Usage Arguments Details Value Author(s) See Also Examples

Description

fourier_2d() and polynomial_2d() creates a list of basis functions to be used as the fixed effect in fit_ghm.

Usage

1
2
3
fourier_2d(max_freqs, lattice_dim)

polynomial_2d(poly_deg, lattice_dim)

Arguments

max_freqs

A length 2 numeric vector with maximum frequencies considered (x-axis and y-axis direction, respectively).

lattice_dim

A length 2 numeric vector with lattice dimensions (N,M) to be used.

poly_deg

A length 2 numeric vector with degrees of the bivariate polynomial to be considered.

Details

fourier_2d() is for 2-dimensional Fourier transform.

Value

A list of functions.

Author(s)

Victor Freguglia

See Also

A paper with detailed description of the package can be found at doi: 10.18637/jss.v101.i08.

Examples

1
2

mrf2d documentation built on Jan. 26, 2022, 1:06 a.m.