powered by
fourier_2d() and polynomial_2d() creates a list of basis functions to be used as the fixed effect in fit_ghm.
fourier_2d()
polynomial_2d()
list
fit_ghm
fourier_2d(max_freqs, lattice_dim)polynomial_2d(poly_deg, lattice_dim)
polynomial_2d(poly_deg, lattice_dim)
A length 2 numeric vector with maximum frequencies considered (x-axis and y-axis direction, respectively).
A length 2 numeric vector with lattice dimensions (N,M) to be used.
A length 2 numeric vector with degrees of the bivariate polynomial to be considered.
A list of functions.
fourier_2d() is for 2-dimensional Fourier transform.
A paper with detailed description of the package can be found at 10.18637/jss.v101.i08.
# NOT RUN { fourier_2d(c(10,10), dim(Z_potts)) polynomial_2d(c(3,3), dim(Z_potts)) # }
Run the code above in your browser using DataLab